Skip to content

Commit 0e40e5f

Browse files
martin-kaiserShawn Guo
authored andcommitted
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 <[email protected]> Signed-off-by: Shawn Guo <[email protected]>
1 parent 7b95e20 commit 0e40e5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/bus/imx-weim.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ static int weim_probe(struct platform_device *pdev)
273273
return -ENOMEM;
274274

275275
/* get the resource */
276-
base = devm_platform_get_and_ioremap_resource(pdev, 0, NULL);
276+
base = devm_platform_ioremap_resource(pdev, 0);
277277
if (IS_ERR(base))
278278
return PTR_ERR(base);
279279

0 commit comments

Comments
 (0)