.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | | - * This program is free software; you can redistribute it and/or modify it |
---|
3 | | - * under the terms of the GNU General Public License version 2 as published |
---|
4 | | - * by the Free Software Foundation. |
---|
5 | 3 | * |
---|
6 | 4 | * Copyright (C) 2011-2015 John Crispin <blogic@phrozen.org> |
---|
7 | 5 | * Copyright (C) 2015 Martin Blumenstingl <martin.blumenstingl@googlemail.com> |
---|
.. | .. |
---|
30 | 28 | { |
---|
31 | 29 | struct device *dev = &pdev->dev; |
---|
32 | 30 | struct device_node *np = dev->of_node; |
---|
33 | | - struct resource *res_xbar; |
---|
34 | 31 | struct regmap *rcu_regmap; |
---|
35 | 32 | void __iomem *xbar_membase; |
---|
36 | 33 | u32 rcu_ahb_endianness_reg_offset; |
---|
37 | 34 | int ret; |
---|
38 | 35 | |
---|
39 | | - res_xbar = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
---|
40 | | - xbar_membase = devm_ioremap_resource(dev, res_xbar); |
---|
| 36 | + xbar_membase = devm_platform_ioremap_resource(pdev, 0); |
---|
41 | 37 | if (IS_ERR(xbar_membase)) |
---|
42 | 38 | return PTR_ERR(xbar_membase); |
---|
43 | 39 | |
---|