Browse Source

ata: fix gemini Kconfig dependencies

We cannot build the new ftide010 code without also building the faraday
sata bridge driver:

drivers/ata/pata_ftide010.o: In function `pata_ftide010_probe':
pata_ftide010.c:(.text+0x2b8): undefined reference to `gemini_sata_bridge_get'
pata_ftide010.c:(.text+0x32c): undefined reference to `gemini_sata_get_muxmode'
pata_ftide010.c:(.text+0x358): undefined reference to `gemini_sata_bridge_enabled'
drivers/ata/pata_ftide010.o: In function `pata_ftide010_gemini_port_stop':
pata_ftide010.c:(.text+0x520): undefined reference to `gemini_sata_stop_bridge'
drivers/ata/pata_ftide010.o: In function `pata_ftide010_gemini_port_start':
pata_ftide010.c:(.text+0x5bc): undefined reference to `gemini_sata_start_bridge'

This adjusts the Kconfig dependencies accordingly.

Fixes: be4e456ed3a5 ("ata: Add driver for Faraday Technology FTIDE010")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Tejun Heo <tj@kernel.org>
Arnd Bergmann 8 years ago
parent
commit
accd04738f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      drivers/ata/Kconfig

+ 2 - 2
drivers/ata/Kconfig

@@ -215,7 +215,7 @@ config SATA_FSL
 
 
 config SATA_GEMINI
 config SATA_GEMINI
 	tristate "Gemini SATA bridge support"
 	tristate "Gemini SATA bridge support"
-	depends on PATA_FTIDE010
+	depends on ARCH_GEMINI || COMPILE_TEST
 	default ARCH_GEMINI
 	default ARCH_GEMINI
 	help
 	help
 	  This enabled support for the FTIDE010 to SATA bridge
 	  This enabled support for the FTIDE010 to SATA bridge
@@ -613,7 +613,7 @@ config PATA_FTIDE010
 	tristate "Faraday Technology FTIDE010 PATA support"
 	tristate "Faraday Technology FTIDE010 PATA support"
 	depends on OF
 	depends on OF
 	depends on ARM
 	depends on ARM
-	default ARCH_GEMINI
+	depends on SATA_GEMINI
 	help
 	help
 	  This option enables support for the Faraday FTIDE010
 	  This option enables support for the Faraday FTIDE010
 	  PATA controller found in the Cortina Gemini SoCs.
 	  PATA controller found in the Cortina Gemini SoCs.