]> git.karo-electronics.de Git - karo-tx-linux.git/commit
regulator: core: Fix default return value for _get()
authorMark Brown <broonie@linaro.org>
Fri, 20 Sep 2013 11:23:30 +0000 (12:23 +0100)
committerMark Brown <broonie@linaro.org>
Fri, 20 Sep 2013 16:38:44 +0000 (17:38 +0100)
commit9b92da1f1205bd2591487051a93624dd6c258eef
tree467b882973ed4ad12cbdbb89f7f17a47dc9612c0
parent4f0ac6dabf867095b31f851ba0d0ceaca2f87e2e
regulator: core: Fix default return value for _get()

Now that we are defaulting to providing dummy regulators fix the logic
for substituting a dummy by making the default return code -EPROBE_DEFER.

Reported-by: Thierry Reding <treding@nvidia.com>
Tested-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/regulator/core.c