From e5bffb59cfbb3371ff00a165a5a48c1f3fdf125a Mon Sep 17 00:00:00 2001 From: Aaron Sierra Date: Wed, 17 Sep 2014 13:08:28 -0500 Subject: mtd: physmap_of: Add non-obsolete map_rom probe Previously, the only way to map a NOR device as a simple ROM was to use the obsolete "direct-mapped" compatible binding (which further requires device_type = "nor" and probe-type = "NOR" properties). This patch adds an "mtd-rom" compatible binding to the "map_rom" probe type. Signed-off-by: Aaron Sierra Signed-off-by: Brian Norris --- drivers/mtd/maps/physmap_of.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'drivers/mtd/maps') diff --git a/drivers/mtd/maps/physmap_of.c b/drivers/mtd/maps/physmap_of.c index 63d82dae4a78..c1d21cb501ca 100644 --- a/drivers/mtd/maps/physmap_of.c +++ b/drivers/mtd/maps/physmap_of.c @@ -339,6 +339,10 @@ static struct of_device_id of_flash_match[] = { .compatible = "mtd-ram", .data = (void *)"map_ram", }, + { + .compatible = "mtd-rom", + .data = (void *)"map_rom", + }, { .type = "rom", .compatible = "direct-mapped" -- cgit v1.2.3