ata: fix requirements for CONFIG_AHCI_PCI
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sun, 26 Mar 2023 16:58:25 +0000 (18:58 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 6 Apr 2023 23:10:08 +0000 (19:10 -0400)
Building with CONFIG_AHCI_PCI=y and CONFIG_SCSI_AHCI=n leads to

    drivers/ata/ahci-pci.o: in function `ahci_pci_probe':
    drivers/ata/ahci-pci.c:21: undefined reference to `ahci_probe_scsi_pci'

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/ata/Kconfig

index 3fe53d6..2ab502c 100644 (file)
@@ -37,6 +37,7 @@ config AHCI_PCI
        bool "Support for PCI-based AHCI controller"
        depends on PCI
        depends on DM_SCSI
+       depends on SCSI_AHCI
        help
          Enables support for the PCI-based AHCI controller.