diff options
author | Aaron Sierra <asierra@xes-inc.com> | 2014-09-17 14:08:18 -0400 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2014-09-22 13:13:11 -0400 |
commit | 9b07a8d1ab85ccacaceb9f704c361119348aabab (patch) | |
tree | f6c92f7915fcf159d0322e5b23282bfaea963dfc | |
parent | ab95eac99c1714ede92800a9c33f4c96ce8d558c (diff) |
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 <asierra@xes-inc.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
-rw-r--r-- | drivers/mtd/maps/physmap_of.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, | |||
103 | if (strcmp(of_probe, "ROM") != 0) | 103 | if (strcmp(of_probe, "ROM") != 0) |
104 | dev_warn(&dev->dev, "obsolete_probe: don't know probe " | 104 | dev_warn(&dev->dev, "obsolete_probe: don't know probe " |
105 | "type '%s', mapping as rom\n", of_probe); | 105 | "type '%s', mapping as rom\n", of_probe); |
106 | return do_map_probe("mtd_rom", map); | 106 | return do_map_probe("map_rom", map); |
107 | } | 107 | } |
108 | } | 108 | } |
109 | 109 | ||