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)
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>

No differences found