From: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Date: Tue, 4 Jan 2022 05:53:49 +0000 (+0900)
Subject: ata: ahci_dm816: add compile test support
X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=56e18702b0c240dc3c4fde0619e8a78f5f13be97;p=linux.git

ata: ahci_dm816: add compile test support

Add Kconfig dependendy on COMPILE_TEST to allow compile tests with
configs that do not enable ARCH_OMAP2PLUS.

Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
---

diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig
index b100565762e9e..47b7b69b88b12 100644
--- a/drivers/ata/Kconfig
+++ b/drivers/ata/Kconfig
@@ -166,7 +166,7 @@ config AHCI_DA850
 
 config AHCI_DM816
 	tristate "DaVinci DM816 AHCI SATA support"
-	depends on ARCH_OMAP2PLUS
+	depends on ARCH_OMAP2PLUS || COMPILE_TEST
 	select SATA_HOST
 	help
 	  This option enables support for the DaVinci DM816 SoC's