diff options
author | Martin Kaiser <martin@kaiser.cx> | 2023-07-09 15:39:44 +0200 |
---|---|---|
committer | Shawn Guo <shawnguo@kernel.org> | 2023-07-19 10:14:11 +0800 |
commit | 0e40e5fe87f11a8d282afc0dacc8c8b4f8a57630 (patch) | |
tree | 1e0d3e021f1f7c07ab5e2191f055a3629a853d3f /drivers/bus | |
parent | 7b95e20e32c9169d6232d097c26de825839872e8 (diff) |
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 <martin@kaiser.cx>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Diffstat (limited to 'drivers/bus')
-rw-r--r-- | drivers/bus/imx-weim.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/bus/imx-weim.c b/drivers/bus/imx-weim.c index 52a5d0447390..42c9386a7b42 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); |