ata: fix i.MX AHCI driver dependencies
authorJean Delvare <jdelvare@suse.de>
Tue, 8 Apr 2014 09:06:26 +0000 (11:06 +0200)
committerTejun Heo <tj@kernel.org>
Tue, 8 Apr 2014 12:31:48 +0000 (08:31 -0400)
The ahci_imx driver is only needed on Freescale i.MX platforms so
don't let it be built on other platforms, except for build test
purpose.

Signed-off-by: Jean Delvare <jdelvare@suse.de>
Cc: Tejun Heo <tj@kernel.org>
Cc: Richard Zhu <r65037@freescale.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/ata/Kconfig

index 2e4da3bc47fc4a4e15557981a3e2c69320a9cf88..c2706047337f17c0fad38b3161cabc93d95be0e5 100644 (file)
@@ -116,7 +116,7 @@ config AHCI_ST
 
 config AHCI_IMX
        tristate "Freescale i.MX AHCI SATA support"
-       depends on MFD_SYSCON
+       depends on MFD_SYSCON && (ARCH_MXC || COMPILE_TEST)
        help
          This option enables support for the Freescale i.MX SoC's
          onboard AHCI SATA.