From: Martin Kaiser Date: Sun, 9 Jul 2023 13:39:44 +0000 (+0200) Subject: bus: imx-weim: use devm_platform_ioremap_resource X-Git-Tag: v6.6.7~2050^2~11^2~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0e40e5fe87f11a8d282afc0dacc8c8b4f8a57630;p=platform%2Fkernel%2Flinux-starfive.git bus: imx-weim: use devm_platform_ioremap_resource devm_platform_get_and_ioremap_resource maps a resource and returns its physical address. If we don't need the physical address, we should call devm_platform_ioremap_resource instead. Signed-off-by: Martin Kaiser Signed-off-by: Shawn Guo --- diff --git a/drivers/bus/imx-weim.c b/drivers/bus/imx-weim.c index 52a5d04..42c9386 100644 --- a/drivers/bus/imx-weim.c +++ b/drivers/bus/imx-weim.c @@ -273,7 +273,7 @@ static int weim_probe(struct platform_device *pdev) return -ENOMEM; /* get the resource */ - base = devm_platform_get_and_ioremap_resource(pdev, 0, NULL); + base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(base)) return PTR_ERR(base);