]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: davinci: dont' use module_platform_driver_probe()
authorDavid Lechner <david@lechnology.com>
Sun, 21 Jan 2018 20:09:36 +0000 (14:09 -0600)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 22 Jan 2018 07:21:39 +0000 (08:21 +0100)
commit67991483c8eb07ab313ba2ffb158c94608b4cfd9
treeff8c804a49c6bcc6e933c6839ffd7a50fbe5cd0d
parent560266837b37145cc5fe5cfcbf67e539206a33a3
mmc: davinci: dont' use module_platform_driver_probe()

This changes module_platform_driver_probe() to module_platform_driver()
in the TI DaVinci MMC driver.

On device tree systems, we can get a -EPROBE_DEFER when using a pinmux
for the CD GPIO, which results in the driver never loading because
module_platform_driver_probe() prevents it from being re-probed.

So, we replace module_platform_driver_probe() with
module_platform_driver() and removed the __init attributes accordingly.

Signed-off-by: David Lechner <david@lechnology.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/davinci_mmc.c