mmc: mvsdio: fix deferred probe from __init
authorJohan Hovold <jhovold@gmail.com>
Mon, 23 Sep 2013 14:27:27 +0000 (16:27 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Sep 2013 23:18:32 +0000 (16:18 -0700)
commit1867adee6ed7793a256ecdd623e1337988223c09
tree305cf5948e6da5c95a6ea64924f3776a39407b8e
parent3f9120b0424f3e03c75518cb751f9e2bfa73c32a
mmc: mvsdio: fix deferred probe from __init

Move probe out of __init section and don't use platform_driver_probe
which cannot be used with deferred probing.

Since commit e9354576 ("gpiolib: Defer failed gpio requests by default")
this driver might return -EPROBE_DEFER if the mmc_gpio_request_cd fails.

Cc: Nicolas Pitre <nico@fluxnic.net>
Cc: Chris Ball <cjb@laptop.org>
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mmc/host/mvsdio.c