Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Martin Kaiser and committed by
Shawn Guo
0e40e5fe 7b95e20e

+1 -1
+1 -1
drivers/bus/imx-weim.c
··· 273 273 return -ENOMEM; 274 274 275 275 /* get the resource */ 276 - base = devm_platform_get_and_ioremap_resource(pdev, 0, NULL); 276 + base = devm_platform_ioremap_resource(pdev, 0); 277 277 if (IS_ERR(base)) 278 278 return PTR_ERR(base); 279 279