Skip to content

Commit

Permalink
mtd: physmap_of: Fix ROM support via OF
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Aaron Sierra authored and Brian Norris committed Sep 22, 2014
1 parent ab95eac commit 9b07a8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mtd/maps/physmap_of.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 9b07a8d

Please sign in to comment.