]> git.karo-electronics.de Git - linux-beck.git/commit
mmc: omap_hsmmc: support deferred probing for GPIOs
authorJan Luebbe <jlu@pengutronix.de>
Wed, 30 Jan 2013 09:07:17 +0000 (10:07 +0100)
committerChris Ball <cjb@laptop.org>
Fri, 22 Mar 2013 15:51:49 +0000 (11:51 -0400)
commitdc642c28d4eb39d1c7f2f85bbf1cea45de4766af
tree81ca55d02be43988ccccc2724b23cd3747366f9c
parent0aacd23ff29a846c7eebbd9db8752fa360f34ad1
mmc: omap_hsmmc: support deferred probing for GPIOs

If the CD/WP-GPIOs are not provided by the SoC's GPIO controller,
we need to handle the case where omap_hsmmc is probed earlier than
the GPIO controller chosen in the device tree.

Fix this by checking the return value of of_get_named_gpio against
-EPROBE_DEFER and passing it through to the probe function.

Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
Acked-by: Balaji T K <balajitk@ti.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/omap_hsmmc.c