diff mbox series

[1/2] ata: ahci-pci: Fix dependency on DM_PCI

Message ID 20210815142737.16992-1-pali@kernel.org
State Accepted
Commit 20aa320a4f546b90432cdaa88e7c3cc3d970b3d7
Delegated to: Tom Rini
Headers show
Series [1/2] ata: ahci-pci: Fix dependency on DM_PCI | expand

Commit Message

Pali Rohár Aug. 15, 2021, 2:27 p.m. UTC
File drivers/ata/ahci-pci.c calls function ahci_probe_scsi_pci() which is
compiled only when DM_PCI is enabled. So add missing dependency into
Kconfig.

Signed-off-by: Pali Rohár <pali@kernel.org>
---
 drivers/ata/Kconfig | 1 +
 1 file changed, 1 insertion(+)

Comments

Stefan Roese Aug. 16, 2021, 7:57 a.m. UTC | #1
On 15.08.21 16:27, Pali Rohár wrote:
> File drivers/ata/ahci-pci.c calls function ahci_probe_scsi_pci() which is
> compiled only when DM_PCI is enabled. So add missing dependency into
> Kconfig.
> 
> Signed-off-by: Pali Rohár <pali@kernel.org>

Reviewed-by: Stefan Roese <sr@denx.de>

Thanks,
Stefan

> ---
>   drivers/ata/Kconfig | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig
> index 6f0b77238364..0c1490a9f900 100644
> --- a/drivers/ata/Kconfig
> +++ b/drivers/ata/Kconfig
> @@ -36,6 +36,7 @@ menu "SATA/SCSI device support"
>   
>   config AHCI_PCI
>   	bool "Support for PCI-based AHCI controller"
> +	depends on DM_PCI
>   	depends on DM_SCSI
>   	help
>   	  Enables support for the PCI-based AHCI controller.
> 


Viele Grüße,
Stefan
Tom Rini Sept. 2, 2021, 1:29 p.m. UTC | #2
On Sun, Aug 15, 2021 at 04:27:36PM +0200, Pali Rohár wrote:

> File drivers/ata/ahci-pci.c calls function ahci_probe_scsi_pci() which is
> compiled only when DM_PCI is enabled. So add missing dependency into
> Kconfig.
> 
> Signed-off-by: Pali Rohár <pali@kernel.org>
> Reviewed-by: Stefan Roese <sr@denx.de>

Applied to u-boot/next, thanks!
diff mbox series

Patch

diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig
index 6f0b77238364..0c1490a9f900 100644
--- a/drivers/ata/Kconfig
+++ b/drivers/ata/Kconfig
@@ -36,6 +36,7 @@  menu "SATA/SCSI device support"
 
 config AHCI_PCI
 	bool "Support for PCI-based AHCI controller"
+	depends on DM_PCI
 	depends on DM_SCSI
 	help
 	  Enables support for the PCI-based AHCI controller.