瀏覽代碼

ata: Fix CS55xx dependencies

As far as I know, the CS5520 and CS5530 chipsets were only used with
32-bit x86 Geode processors, so I think their drivers are only needed
on this architecture, except for build testing purpose.

While we're here, simplify the dependencies for the CS5535 driver.

The CS5536 was used with the Geode processors, but also on MIPS
Loongson/Lemote 2 systems, so let its driver be built for these two
architectures only, except for build testing purpose.

Signed-off-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Ralf Baechle <ralf@linux-mips.org>
Jean Delvare 11 年之前
父節點
當前提交
9236a76d9e
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      drivers/ata/Kconfig

+ 4 - 4
drivers/ata/Kconfig

@@ -411,7 +411,7 @@ config PATA_CMD64X
 
 
 config PATA_CS5520
 config PATA_CS5520
 	tristate "CS5510/5520 PATA support"
 	tristate "CS5510/5520 PATA support"
-	depends on PCI
+	depends on PCI && (X86_32 || COMPILE_TEST)
 	help
 	help
 	  This option enables support for the Cyrix 5510/5520
 	  This option enables support for the Cyrix 5510/5520
 	  companion chip used with the MediaGX/Geode processor family.
 	  companion chip used with the MediaGX/Geode processor family.
@@ -420,7 +420,7 @@ config PATA_CS5520
 
 
 config PATA_CS5530
 config PATA_CS5530
 	tristate "CS5530 PATA support"
 	tristate "CS5530 PATA support"
-	depends on PCI
+	depends on PCI && (X86_32 || COMPILE_TEST)
 	help
 	help
 	  This option enables support for the Cyrix/NatSemi/AMD CS5530
 	  This option enables support for the Cyrix/NatSemi/AMD CS5530
 	  companion chip used with the MediaGX/Geode processor family.
 	  companion chip used with the MediaGX/Geode processor family.
@@ -429,7 +429,7 @@ config PATA_CS5530
 
 
 config PATA_CS5535
 config PATA_CS5535
 	tristate "CS5535 PATA support (Experimental)"
 	tristate "CS5535 PATA support (Experimental)"
-	depends on PCI && X86 && !X86_64
+	depends on PCI && X86_32
 	help
 	help
 	  This option enables support for the NatSemi/AMD CS5535
 	  This option enables support for the NatSemi/AMD CS5535
 	  companion chip used with the Geode processor family.
 	  companion chip used with the Geode processor family.
@@ -438,7 +438,7 @@ config PATA_CS5535
 
 
 config PATA_CS5536
 config PATA_CS5536
 	tristate "CS5536 PATA support"
 	tristate "CS5536 PATA support"
-	depends on PCI
+	depends on PCI && (X86_32 || MIPS || COMPILE_TEST)
 	help
 	help
 	  This option enables support for the AMD CS5536
 	  This option enables support for the AMD CS5536
 	  companion chip used with the Geode LX processor family.
 	  companion chip used with the Geode LX processor family.