aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2014-06-05 17:14:41 -0400
committerUlf Hansson <ulf.hansson@linaro.org>2014-06-12 04:51:14 -0400
commit5d01b7684b7ebade6d9ea9c94a31357aec731ecd (patch)
tree9fc11ff5e97d8aa42edc1d92150b09d9d9c2f13a
parent60a549fcda819b69b349a03e6a9300139ab234a9 (diff)
mmc: simplify SDHCI Kconfig dependencies
We have a number of front-end drivers for SDHCI_PLTFM, some of them use 'select MMC_SDHCI_PLTFM', others use 'depends on'. This is inconsistent and confusing, and in one case has also led to a build error because of incomplete dependencies: warning: (MMC_SDHCI_PXAV3 && MMC_SDHCI_PXAV2 && MMC_SDHCI_BCM_KONA) selects MMC_SDHCI_PLTFM which has unmet direct dependencies (MMC && MMC_SDHCI) drivers/built-in.o: In function `sdhci_sirf_resume': :(.text+0xaaacb4): undefined reference to `sdhci_resume_host' drivers/built-in.o: In function `sdhci_sirf_suspend': :(.text+0xaaacf8): undefined reference to `sdhci_suspend_host' drivers/built-in.o: In function `sdhci_sirf_probe': :(.text+0xaaaf44): undefined reference to `sdhci_add_host' :(.text+0xaaaf50): undefined reference to `sdhci_remove_host' This changes Kconfig to use 'depends on MMC_SDHCI_PLTFM' for all these cases, to fix the build error and make the logic more logical. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
-rw-r--r--drivers/mmc/host/Kconfig8
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/mmc/host/Kconfig b/drivers/mmc/host/Kconfig
index 5115445cded1..a5652548230a 100644
--- a/drivers/mmc/host/Kconfig
+++ b/drivers/mmc/host/Kconfig
@@ -216,8 +216,7 @@ config MMC_SDHCI_SIRF
216config MMC_SDHCI_PXAV3 216config MMC_SDHCI_PXAV3
217 tristate "Marvell MMP2 SD Host Controller support (PXAV3)" 217 tristate "Marvell MMP2 SD Host Controller support (PXAV3)"
218 depends on CLKDEV_LOOKUP 218 depends on CLKDEV_LOOKUP
219 select MMC_SDHCI 219 depends on MMC_SDHCI_PLTFM
220 select MMC_SDHCI_PLTFM
221 default CPU_MMP2 220 default CPU_MMP2
222 help 221 help
223 This selects the Marvell(R) PXAV3 SD Host Controller. 222 This selects the Marvell(R) PXAV3 SD Host Controller.
@@ -229,8 +228,7 @@ config MMC_SDHCI_PXAV3
229config MMC_SDHCI_PXAV2 228config MMC_SDHCI_PXAV2
230 tristate "Marvell PXA9XX SD Host Controller support (PXAV2)" 229 tristate "Marvell PXA9XX SD Host Controller support (PXAV2)"
231 depends on CLKDEV_LOOKUP 230 depends on CLKDEV_LOOKUP
232 select MMC_SDHCI 231 depends on MMC_SDHCI_PLTFM
233 select MMC_SDHCI_PLTFM
234 default CPU_PXA910 232 default CPU_PXA910
235 help 233 help
236 This selects the Marvell(R) PXAV2 SD Host Controller. 234 This selects the Marvell(R) PXAV2 SD Host Controller.
@@ -264,7 +262,7 @@ config MMC_SDHCI_S3C_DMA
264config MMC_SDHCI_BCM_KONA 262config MMC_SDHCI_BCM_KONA
265 tristate "SDHCI support on Broadcom KONA platform" 263 tristate "SDHCI support on Broadcom KONA platform"
266 depends on ARCH_BCM_MOBILE 264 depends on ARCH_BCM_MOBILE
267 select MMC_SDHCI_PLTFM 265 depends on MMC_SDHCI_PLTFM
268 help 266 help
269 This selects the Broadcom Kona Secure Digital Host Controller 267 This selects the Broadcom Kona Secure Digital Host Controller
270 Interface(SDHCI) support. 268 Interface(SDHCI) support.