diff options
author | Arnd Bergmann <arnd@arndb.de> | 2017-07-10 04:51:02 -0400 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2017-07-10 13:40:02 -0400 |
commit | accd04738f90c02c537378124de7c3cb5a511027 (patch) | |
tree | cb587cf25b86e9075bc1e45210ec54c6537758a6 | |
parent | af3c8d98508d37541d4bf57f13a984a7f73a328c (diff) |
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>
-rw-r--r-- | drivers/ata/Kconfig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig index 948fc86980a1..363fc5330c21 100644 --- a/drivers/ata/Kconfig +++ b/drivers/ata/Kconfig | |||
@@ -215,7 +215,7 @@ config SATA_FSL | |||
215 | 215 | ||
216 | config SATA_GEMINI | 216 | config SATA_GEMINI |
217 | tristate "Gemini SATA bridge support" | 217 | tristate "Gemini SATA bridge support" |
218 | depends on PATA_FTIDE010 | 218 | depends on ARCH_GEMINI || COMPILE_TEST |
219 | default ARCH_GEMINI | 219 | default ARCH_GEMINI |
220 | help | 220 | help |
221 | This enabled support for the FTIDE010 to SATA bridge | 221 | This enabled support for the FTIDE010 to SATA bridge |
@@ -613,7 +613,7 @@ config PATA_FTIDE010 | |||
613 | tristate "Faraday Technology FTIDE010 PATA support" | 613 | tristate "Faraday Technology FTIDE010 PATA support" |
614 | depends on OF | 614 | depends on OF |
615 | depends on ARM | 615 | depends on ARM |
616 | default ARCH_GEMINI | 616 | depends on SATA_GEMINI |
617 | help | 617 | help |
618 | This option enables support for the Faraday FTIDE010 | 618 | This option enables support for the Faraday FTIDE010 |
619 | PATA controller found in the Cortina Gemini SoCs. | 619 | PATA controller found in the Cortina Gemini SoCs. |