diff options
author | Damien Le Moal <damien.lemoal@opensource.wdc.com> | 2022-02-16 16:14:35 +0900 |
---|---|---|
committer | Damien Le Moal <damien.lemoal@opensource.wdc.com> | 2022-02-20 09:06:05 +0900 |
commit | f7220eac752f2c96a1b6e0830cbf427ca908e511 (patch) | |
tree | 495a909e070d67cac9b8b2e7587595be30cadddb /drivers/ata/Kconfig | |
parent | 59b0040475ee5d562f061eef718b808fbec8a13a (diff) |
ata: Kconfig: fix sata gemini compile test condition
When compile testing the sata gemini driver, CONFIG_OF is required to
avoid the warning:
drivers/ata/sata_gemini.c:421:34: error: ‘gemini_sata_of_match’ defined
but not used [-Werror=unused-const-variable=]
Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Diffstat (limited to 'drivers/ata/Kconfig')
-rw-r--r-- | drivers/ata/Kconfig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig index cb54631fd950..f2d436df9da3 100644 --- a/drivers/ata/Kconfig +++ b/drivers/ata/Kconfig @@ -283,7 +283,7 @@ config SATA_FSL config SATA_GEMINI tristate "Gemini SATA bridge support" - depends on ARCH_GEMINI || COMPILE_TEST + depends on ARCH_GEMINI || (OF && COMPILE_TEST) select SATA_HOST default ARCH_GEMINI help |