Skip to content
Commit 1fdc90fb authored by NeilBrown's avatar NeilBrown Committed by Chris Ball
Browse files

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: default avatarNeilBrown <neilb@suse.de>
Acked-by: default avatarRajendra Nayak <rnayak@ti.com>
Signed-off-by: default avatarChris Ball <cjb@laptop.org>
parent 5fdb4505
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment