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 badd019 commit e1666cfCopy full SHA for e1666cf
drivers/mtd/maps/physmap-core.c
@@ -508,8 +508,7 @@ static int physmap_flash_probe(struct platform_device *dev)
508
for (i = 0; i < info->nmaps; i++) {
509
struct resource *res;
510
511
- res = platform_get_resource(dev, IORESOURCE_MEM, i);
512
- info->maps[i].virt = devm_ioremap_resource(&dev->dev, res);
+ info->maps[i].virt = devm_platform_get_and_ioremap_resource(dev, i, &res);
513
if (IS_ERR(info->maps[i].virt)) {
514
err = PTR_ERR(info->maps[i].virt);
515
goto err_out;
0 commit comments