]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdf2152fa4d5ed2b0faf28f8070c594a3b8904791
tree305cf5948e6da5c95a6ea64924f3776a39407b8e
parent6f3aab0b5013ce68256b47eafe3089e503be7e1d
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 9d3fa348 ("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