]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 7427/1: mmc: mmci: Defer probe() in case of yet uninitialized GPIOs
authorRoland Stigge <stigge@antcom.de>
Sun, 17 Jun 2012 20:14:27 +0000 (21:14 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 17 Jun 2012 21:24:36 +0000 (22:24 +0100)
commitc1eea188dccb000a68867a3de58f9390bbb9e0a9
tree530969093dd7d83fdf558adade2a712faf8832e3
parentc4603817b25cc9f444b73e728f970ff0f3e49e36
ARM: 7427/1: mmc: mmci: Defer probe() in case of yet uninitialized GPIOs

If the GPIOs used by the MMCI driver are not registered yet when the driver is
probe()d, they can't be used. This happens if the mmci driver is probed before
the respective GPIO controller (e.g. on the LPC32xx EA3250 board, the PCA9532
GPIO controller would be initialized via DT after mmci). Therefore, we defer
mmci in this case.

Signed-off-by: Roland Stigge <stigge@antcom.de>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/mmc/host/mmci.c