From: Aaron Sierra Date: Wed, 17 Sep 2014 18:08:18 +0000 (-0500) Subject: mtd: physmap_of: Fix ROM support via OF X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9b07a8d1ab85ccacaceb9f704c361119348aabab;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git mtd: physmap_of: Fix ROM support via OF The "ROM" and unknown probe types within the obsolete "direct-mapped" probe function used the nonexistent "mtd_rom" probe instead of the intended "map_rom". Signed-off-by: Aaron Sierra Signed-off-by: Brian Norris --- diff --git a/drivers/mtd/maps/physmap_of.c b/drivers/mtd/maps/physmap_of.c index 217c25d7381b..63d82dae4a78 100644 --- a/drivers/mtd/maps/physmap_of.c +++ b/drivers/mtd/maps/physmap_of.c @@ -103,7 +103,7 @@ static struct mtd_info *obsolete_probe(struct platform_device *dev, if (strcmp(of_probe, "ROM") != 0) dev_warn(&dev->dev, "obsolete_probe: don't know probe " "type '%s', mapping as rom\n", of_probe); - return do_map_probe("mtd_rom", map); + return do_map_probe("map_rom", map); } }