mmc: omap_hsmmc: Handle failure of regulator_get better.
authorNeilBrown <neilb@suse.de>
Wed, 8 Aug 2012 04:06:00 +0000 (00:06 -0400)
committerChris Ball <cjb@laptop.org>
Tue, 4 Sep 2012 17:58:16 +0000 (13:58 -0400)
commit1fdc90fb8fb752d4d8d2602115cf4bd071374068
tree77eff86eab3a1b35e4b1e48cb74b43b0dea8b1c2
parent5fdb4505f65227c127092772ccf9d460d69f4bc2
mmc: omap_hsmmc: Handle failure of regulator_get better.

1/ If regulator_get fails, return an error.  This is important if
   it failed with EPROBE_DEFER, as the probe needs to be deferred.

2/ Don't set .set_power until the regulator has been found, or
   the deferred probe will not bother calling omap_hsmmc_reg_get().

Signed-off-by: NeilBrown <neilb@suse.de>
Acked-by: Rajendra Nayak <rnayak@ti.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/omap_hsmmc.c