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)
commit6478f4e12b7663cf5ab5303c06f99e9ec8c2b859
treeff8c804a49c6bcc6e933c6839ffd7a50fbe5cd0d
parent4a09d0b86bad0999a2bb0e2ee126a3c5246d1f51
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