forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f70575805708cabdedea7498aaa3f710fde4d920
kernel/drivers/soc/lantiq/fpi-bus.c
....@@ -1,7 +1,5 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
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.
53 *
64 * Copyright (C) 2011-2015 John Crispin <blogic@phrozen.org>
75 * Copyright (C) 2015 Martin Blumenstingl <martin.blumenstingl@googlemail.com>
....@@ -30,14 +28,12 @@
3028 {
3129 struct device *dev = &pdev->dev;
3230 struct device_node *np = dev->of_node;
33
- struct resource *res_xbar;
3431 struct regmap *rcu_regmap;
3532 void __iomem *xbar_membase;
3633 u32 rcu_ahb_endianness_reg_offset;
3734 int ret;
3835
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);
4137 if (IS_ERR(xbar_membase))
4238 return PTR_ERR(xbar_membase);
4339