]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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>
Wed, 8 Aug 2012 04:06:00 +0000 (00:06 -0400)
commitd2ce21b62294e177ac54a565bd56b8a17d89ab2c
tree7638bf38d4c05ee22670ff496fb0992720172a23
parentb33c706ec99fc3d81d2e3687f4c274e40a2d76e5
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