Selaa lähdekoodia

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@suse.de>
Cc: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Jean Delvare 11 vuotta sitten
vanhempi
commit
3579ad4113
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      drivers/mtd/maps/Kconfig

+ 2 - 2
drivers/mtd/maps/Kconfig

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