summaryrefslogtreecommitdiffstats
path: root/drivers/ata
diff options
context:
space:
mode:
authorDamien Le Moal <damien.lemoal@opensource.wdc.com>2022-02-16 08:14:35 +0100
committerDamien Le Moal <damien.lemoal@opensource.wdc.com>2022-02-20 01:06:05 +0100
commitf7220eac752f2c96a1b6e0830cbf427ca908e511 (patch)
tree495a909e070d67cac9b8b2e7587595be30cadddb /drivers/ata
parentata: libata-scsi: use *switch* statements to check SCSI command codes (diff)
downloadlinux-f7220eac752f2c96a1b6e0830cbf427ca908e511.tar.xz
linux-f7220eac752f2c96a1b6e0830cbf427ca908e511.zip
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')
-rw-r--r--drivers/ata/Kconfig2
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