]> 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)
commit9762c89f0731fdf2345044ee58292511db49a7a8
tree205fd67a228b055369e41f58c4520f1bd60a2bb9
parent8d288571156d3d32921eade93c942984109e326b
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