ata: fix ARASAN CompactFlash PATA driver dependencies
authorBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Wed, 26 Mar 2014 14:33:37 +0000 (15:33 +0100)
committerTejun Heo <tj@kernel.org>
Wed, 26 Mar 2014 16:49:26 +0000 (12:49 -0400)
Make pata_arasan_cf host driver depend on ARCH_SPEAR13XX config
option as ARASAN CompactFlash PATA support is specific to ST
SPEAr13xx SoCs and the driver to work requires suitable device
tree node (or platform device) to be defined.  Additionally
allow the driver build if COMPILE_TEST config option is set.

Cc: Viresh Kumar <viresh.linux@gmail.com>
Cc: Shiraz Hashim <shiraz.hashim@st.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/ata/Kconfig

index 23f15f48896b38f710086d322223b6df18ad5114..af0f71a01e31816dd80695965d4db4816b927cc9 100644 (file)
@@ -386,6 +386,7 @@ config PATA_AMD
 
 config PATA_ARASAN_CF
        tristate "ARASAN CompactFlash PATA Controller Support"
+       depends on ARCH_SPEAR13XX || COMPILE_TEST
        depends on DMADEVICES
        select DMA_ENGINE
        help