]> git.ipfire.org Git - people/ms/u-boot.git/commit - drivers/mmc/Kconfig
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)
commit9c720c815b1b1e95fb13153396417dddf323511d
tree7c290f98aad40990e33273258bf11f3de35d27b7
parente5e7a7c20420a8d88c45e333e1b280d999062506
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