From: Greg Ungerer Date: Thu, 19 Jul 2012 05:42:46 +0000 (+1000) Subject: mtd: allow uclinux map driver to be used on any ColdFire CPU platform X-Git-Tag: next-20120904~60^2~36 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=1fbc5e99e2828dbdc8fc2da879851df3192ee600;p=karo-tx-linux.git mtd: allow uclinux map driver to be used on any ColdFire CPU platform The uclinux.c map driver has traditionally been used only on non-MMU based systems. But there is no fundamental reason it can't be used on systems running with virtual memory. Some ColdFire CPU based systems now have full paged MMU hardware and can use the uclinux.c mapping driver, so making the uclinux.c driver configuration depend on !CONFIG_MMU doesn't make sense now. Allow the CONFIG_MTD_UCLINUX option to be enabled if CONFIG_COLDFIRE is enabled. (I have chosen not to just more generally allow uclinux.c for any MMU type to keep this option hidden for most systems that are not interested in setting it). Signed-off-by: Greg Ungerer Signed-off-by: Artem Bityutskiy --- diff --git a/drivers/mtd/maps/Kconfig b/drivers/mtd/maps/Kconfig index dbe7df1149d3..2e47c2ed0a2d 100644 --- a/drivers/mtd/maps/Kconfig +++ b/drivers/mtd/maps/Kconfig @@ -443,7 +443,7 @@ config MTD_GPIO_ADDR config MTD_UCLINUX bool "Generic uClinux RAM/ROM filesystem support" - depends on MTD_RAM=y && !MMU + depends on MTD_RAM=y && (!MMU || COLDFIRE) help Map driver to support image based filesystems for uClinux.