]> 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)
commit2d8b36c7e08eabcf5a3eee9ff2ff8469dcd88e0f
tree205fd67a228b055369e41f58c4520f1bd60a2bb9
parent368fef5ec9627e5517c658a509f5ce46e92ff46b
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