mtd: Fix Elan SC520 dependencies

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Tue Jun 10 23:59:06 PDT 2014


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=3579ad4113dd6102866abb0ac7b8f329e7d41e4e
Commit:     3579ad4113dd6102866abb0ac7b8f329e7d41e4e
Parent:     49c50b97b5522a987b80fbbf9d9869deee8d23b0
Author:     Jean Delvare <jdelvare at suse.de>
AuthorDate: Fri Mar 14 18:14:20 2014 +0100
Committer:  Brian Norris <computersforpeace at gmail.com>
CommitDate: Mon May 12 11:55:53 2014 -0700

    mtd: Fix Elan SC520 dependencies
    
    Anyone working with an AMD Elan SC520 development or evaluation board
    would be building a dedicated kernel for it, so we can make the
    sc520cdp and netsc520 maps depend on MELAN. SC520_CPUFREQ already
    depends on MELAN so it makes things more consistent. It also makes
    kernel configuration for every other x86 user easier.
    
    Signed-off-by: Jean Delvare <jdelvare at suse.de>
    Cc: David Woodhouse <dwmw2 at infradead.org>
    Signed-off-by: Brian Norris <computersforpeace at gmail.com>
---
 drivers/mtd/maps/Kconfig | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/mtd/maps/Kconfig b/drivers/mtd/maps/Kconfig
index fce23fe..21b2874 100644
--- a/drivers/mtd/maps/Kconfig
+++ b/drivers/mtd/maps/Kconfig
@@ -108,7 +108,7 @@ config MTD_SUN_UFLASH
 
 config MTD_SC520CDP
 	tristate "CFI Flash device mapped on AMD SC520 CDP"
-	depends on X86 && MTD_CFI
+	depends on (MELAN || COMPILE_TEST) && MTD_CFI
 	help
 	  The SC520 CDP board has two banks of CFI-compliant chips and one
 	  Dual-in-line JEDEC chip. This 'mapping' driver supports that
@@ -116,7 +116,7 @@ config MTD_SC520CDP
 
 config MTD_NETSC520
 	tristate "CFI Flash device mapped on AMD NetSc520"
-	depends on X86 && MTD_CFI
+	depends on (MELAN || COMPILE_TEST) && MTD_CFI
 	help
 	  This enables access routines for the flash chips on the AMD NetSc520
 	  demonstration board. If you have one of these boards and would like



More information about the linux-mtd-cvs mailing list