mtd: physmap_of: Fix ROM support via OF
authorAaron Sierra <asierra@xes-inc.com>
Wed, 17 Sep 2014 18:08:18 +0000 (13:08 -0500)
committerBrian Norris <computersforpeace@gmail.com>
Mon, 22 Sep 2014 17:13:11 +0000 (10:13 -0700)
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 <asierra@xes-inc.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/maps/physmap_of.c

index 217c25d7381b7589238833eb3303c9695a10b19d..63d82dae4a78302f579e49f74a871bf9d7b7c42d 100644 (file)
@@ -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);
        }
 }