]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: jz4740: Remove platform data and use standard APIs
authorPaul Cercueil <paul@crapouillou.net>
Fri, 25 Jan 2019 20:09:25 +0000 (17:09 -0300)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 25 Feb 2019 07:40:58 +0000 (08:40 +0100)
commit0539552745af0ee062091e857067f42a1e5c0e16
tree205fd67a228b055369e41f58c4520f1bd60a2bb9
parent414126f9e5abf1973c661d24229543a9458fa8ce
mmc: jz4740: Remove platform data and use standard APIs

Drop the custom code to get the 'cd' and 'wp' GPIOs. The driver now
calls mmc_of_parse() which will init these from devicetree or
device properties.

Also drop the custom code to get the 'power' GPIO. The MMC core
provides us with the means to power the MMC card through an external
regulator.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/jz4740_mmc.c