[PATCH] mtd: allow CONFIG_MTD_PHYSMAP_OF also for CONFIG_MTD_RAM

Philippe De Muyter phdm at macqel.be
Wed Feb 12 11:49:45 EST 2014


Up to now mtd-ram devices described in device trees were only accessible
if mtd-flash or mtd-rom were also needed, because MTD_PHYSMAP_OF was
only available if (MTD_CFI || MTD_JEDECPROBE || MTD_ROM).  Allow
MTD_PHYSMAP_OF selection also when only MTD_RAM is set.

Signed-off-by: Philippe De Muyter <phdm at macqel.be>
---
 drivers/mtd/maps/Kconfig |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mtd/maps/Kconfig b/drivers/mtd/maps/Kconfig
index 310dc7c..a5ec303 100644
--- a/drivers/mtd/maps/Kconfig
+++ b/drivers/mtd/maps/Kconfig
@@ -67,7 +67,7 @@ config MTD_PHYSMAP_BANKWIDTH
 
 config MTD_PHYSMAP_OF
 	tristate "Flash device in physical memory map based on OF description"
-	depends on OF && (MTD_CFI || MTD_JEDECPROBE || MTD_ROM)
+	depends on OF && (MTD_CFI || MTD_JEDECPROBE || MTD_ROM || MTD_RAM)
 	help
 	  This provides a 'mapping' driver which allows the NOR Flash and
 	  ROM driver code to communicate with chips which are mapped
-- 
1.7.5.3




More information about the linux-mtd mailing list