]> git.baikalelectronics.ru Git - uboot.git/commit
mmc: uniphier-sd: fix Kconfig dependency
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 30 Dec 2016 14:20:14 +0000 (23:20 +0900)
committerJaehoon Chung <jh80.chung@samsung.com>
Wed, 11 Jan 2017 10:40:14 +0000 (19:40 +0900)
commita103159b857e03fb9bd63166300e06480d331266
tree7c290f98aad40990e33273258bf11f3de35d27b7
parent65ed2f7ef2ccb5742453a6ef064d5397e684bd06
mmc: uniphier-sd: fix Kconfig dependency

Some MMC drivers describe operations with the DM_MMC_OPS form, but
there are still several drivers with older implementation.  We can
not compile drivers from different groups at the same time because
the core framework is shared with #ifdef CONFIG_DM_MMC_OPS.

Every driver should have "depends on DM_MMC_OPS" (or !DM_MMC_OPS)
explicitly to express which framework it is based on.  This will
avoid enabling drivers with incompatible interface at the same time.
It is incorrect to make a driver "select DM_MMC_OPS".

While we are here, add "depends on OF_CONTROL" as well because this
driver can be configured only by Device Tree.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
drivers/mmc/Kconfig