diff mbox

[1/2] mtd: physmap_of: Fix ROM support via OF

Message ID 1456841230.234377.1410977298299.JavaMail.zimbra@xes-inc.com
State Accepted
Commit 9b07a8d1ab85ccacaceb9f704c361119348aabab
Headers show

Commit Message

Aaron Sierra Sept. 17, 2014, 6:08 p.m. UTC
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>
---
 drivers/mtd/maps/physmap_of.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Brian Norris Sept. 22, 2014, 6:19 p.m. UTC | #1
On Wed, Sep 17, 2014 at 01:08:18PM -0500, Aaron Sierra wrote:
> 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>

Pushed both to l2-mtd.git. Thanks!

Brian
diff mbox

Patch

diff --git a/drivers/mtd/maps/physmap_of.c b/drivers/mtd/maps/physmap_of.c
index 217c25d..63d82da 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);
 	}
 }