diff options
author | Yangtao Li <tiny.windzz@gmail.com> | 2019-12-22 21:50:28 +0300 |
---|---|---|
committer | Gregory CLEMENT <gregory.clement@bootlin.com> | 2020-01-08 12:39:25 +0300 |
commit | f3ba1c86c2cd9c37c4a394ae72032181eef5434a (patch) | |
tree | 240d1ef15bb86f75117908ad8dfd4d34deed6120 /drivers | |
parent | 54dd5fcb7cc0a9c6dc5af0e28d4dbef651b8d165 (diff) | |
download | linux-f3ba1c86c2cd9c37c4a394ae72032181eef5434a.tar.xz |
memory: mvebu-devbus: convert to devm_platform_ioremap_resource
Use devm_platform_ioremap_resource() to simplify code.
Signed-off-by: Yangtao Li <tiny.windzz@gmail.com>
Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/memory/mvebu-devbus.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/memory/mvebu-devbus.c b/drivers/memory/mvebu-devbus.c index 095f8a3b2cfc..886aea587276 100644 --- a/drivers/memory/mvebu-devbus.c +++ b/drivers/memory/mvebu-devbus.c @@ -267,7 +267,6 @@ static int mvebu_devbus_probe(struct platform_device *pdev) struct devbus_read_params r; struct devbus_write_params w; struct devbus *devbus; - struct resource *res; struct clk *clk; unsigned long rate; int err; @@ -277,8 +276,7 @@ static int mvebu_devbus_probe(struct platform_device *pdev) return -ENOMEM; devbus->dev = dev; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - devbus->base = devm_ioremap_resource(&pdev->dev, res); + devbus->base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(devbus->base)) return PTR_ERR(devbus->base); |