]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mmc: simplify SDHCI Kconfig dependencies
authorArnd Bergmann <arnd@arndb.de>
Thu, 5 Jun 2014 21:14:41 +0000 (23:14 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 12 Jun 2014 08:51:14 +0000 (10:51 +0200)
commit5d01b7684b7ebade6d9ea9c94a31357aec731ecd
tree9fc11ff5e97d8aa42edc1d92150b09d9d9c2f13a
parent60a549fcda819b69b349a03e6a9300139ab234a9
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>
drivers/mmc/host/Kconfig