[PATCH] mmc: Add hardware dependencies for sdhci-pxav3 and sdhci-pxav2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I seem to understand that the sdhci-pxav3 and sdhci-pxav2 drivers are
only needed on the MMP architecture. So add a hardware dependency on
ARCH_MMP, so that other users don't get to build useless drivers.

Signed-off-by: Jean Delvare <jdelvare@xxxxxxx>
Cc: Chris Ball <chris@xxxxxxxxxx>
Cc: Ulf Hansson <ulf.hansson@xxxxxxxxxx>
---
 drivers/mmc/host/Kconfig |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- linux-3.15-rc2.orig/drivers/mmc/host/Kconfig	2014-04-14 09:42:30.197082285 +0200
+++ linux-3.15-rc2/drivers/mmc/host/Kconfig	2014-04-23 14:10:48.863916201 +0200
@@ -215,7 +215,7 @@ config MMC_SDHCI_SIRF
 
 config MMC_SDHCI_PXAV3
 	tristate "Marvell MMP2 SD Host Controller support (PXAV3)"
-	depends on CLKDEV_LOOKUP
+	depends on CLKDEV_LOOKUP && (ARCH_MMP || COMPILE_TEST)
 	select MMC_SDHCI
 	select MMC_SDHCI_PLTFM
 	default CPU_MMP2
@@ -228,7 +228,7 @@ config MMC_SDHCI_PXAV3
 
 config MMC_SDHCI_PXAV2
 	tristate "Marvell PXA9XX SD Host Controller support (PXAV2)"
-	depends on CLKDEV_LOOKUP
+	depends on CLKDEV_LOOKUP && (ARCH_MMP || COMPILE_TEST)
 	select MMC_SDHCI
 	select MMC_SDHCI_PLTFM
 	default CPU_PXA910


-- 
Jean Delvare
SUSE L3 Support
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux