diff options
author | Yangtao Li <frank.li@vivo.com> | 2023-07-06 15:20:41 +0800 |
---|---|---|
committer | Sudeep Holla <sudeep.holla@arm.com> | 2023-07-13 14:38:44 +0100 |
commit | bc0e769647d78cb2693376fbbd52e9abb9ab0ac2 (patch) | |
tree | 54fd6a9cc03dc515db3d4e65e68865ef1232c11b /drivers/bus | |
parent | 06c2afb862f9da8dc5efa4b6076a0e48c3fbaaa5 (diff) | |
download | linux-bc0e769647d78cb2693376fbbd52e9abb9ab0ac2.tar.gz linux-bc0e769647d78cb2693376fbbd52e9abb9ab0ac2.tar.bz2 linux-bc0e769647d78cb2693376fbbd52e9abb9ab0ac2.zip |
bus: vexpress-config: Convert to devm_platform_ioremap_resource()
Use devm_platform_ioremap_resource() to simplify code.
Signed-off-by: Yangtao Li <frank.li@vivo.com>
Link: https://lore.kernel.org/r/20230706072042.31296-6-frank.li@vivo.com
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Diffstat (limited to 'drivers/bus')
-rw-r--r-- | drivers/bus/vexpress-config.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/bus/vexpress-config.c b/drivers/bus/vexpress-config.c index 472a570bd53a..c4e1becbb2d2 100644 --- a/drivers/bus/vexpress-config.c +++ b/drivers/bus/vexpress-config.c @@ -350,7 +350,6 @@ static struct vexpress_config_bridge_ops vexpress_syscfg_bridge_ops = { static int vexpress_syscfg_probe(struct platform_device *pdev) { struct vexpress_syscfg *syscfg; - struct resource *res; struct vexpress_config_bridge *bridge; struct device_node *node; int master; @@ -362,8 +361,7 @@ static int vexpress_syscfg_probe(struct platform_device *pdev) syscfg->dev = &pdev->dev; INIT_LIST_HEAD(&syscfg->funcs); - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - syscfg->base = devm_ioremap_resource(&pdev->dev, res); + syscfg->base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(syscfg->base)) return PTR_ERR(syscfg->base); |