We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79c4a56 commit 0e0d59fCopy full SHA for 0e0d59f
drivers/mtd/maps/plat-ram.c
@@ -123,8 +123,7 @@ static int platram_probe(struct platform_device *pdev)
123
info->pdata = pdata;
124
125
/* get the resource for the memory mapping */
126
- res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
127
- info->map.virt = devm_ioremap_resource(&pdev->dev, res);
+ info->map.virt = devm_platform_get_and_ioremap_resource(pdev, 0, &res);
128
if (IS_ERR(info->map.virt)) {
129
err = PTR_ERR(info->map.virt);
130
goto exit_free;
0 commit comments