mtd: physmap_of: Fix ROM support via OF

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Wed Oct 15 23:59:08 PDT 2014


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=9b07a8d1ab85ccacaceb9f704c361119348aabab
Commit:     9b07a8d1ab85ccacaceb9f704c361119348aabab
Parent:     ab95eac99c1714ede92800a9c33f4c96ce8d558c
Author:     Aaron Sierra <asierra at xes-inc.com>
AuthorDate: Wed Sep 17 13:08:18 2014 -0500
Committer:  Brian Norris <computersforpeace at gmail.com>
CommitDate: Mon Sep 22 10:13:11 2014 -0700

    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 at xes-inc.com>
    Signed-off-by: Brian Norris <computersforpeace at gmail.com>
---
 drivers/mtd/maps/physmap_of.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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);
 	}
 }
 



More information about the linux-mtd-cvs mailing list