aboutsummaryrefslogtreecommitdiff
path: root/drivers/nfc
diff options
context:
space:
mode:
authorMark Brown2014-01-27 17:34:07 +0000
committerMark Brown2014-01-28 11:37:43 +0000
commit317b5684d52269b75b4ec6480f9dac056d0d4ba8 (patch)
tree2365e2bc5aa2267994b153ff95ed77bf9a7560ab /drivers/nfc
parent07b19808486054f356dbf3495a277f51af062b35 (diff)
regulator: core: Correct default return value for full constraints
Once we have full constraints then all supply mappings should be known to the regulator API. This means that we should treat failed lookups as fatal rather than deferring in the hope of further registrations but this was broken by commit 9b92da1f1205bd25 "regulator: core: Fix default return value for _get()" which was targeted at DT systems but unintentionally broke non-DT systems by changing the default return value. Fix this by explicitly returning -EPROBE_DEFER from the DT lookup if we find a property but no corresponding regulator and by having the non-DT case default to -ENODEV when we have full constraints. Fixes: 9b92da1f1205bd25 "regulator: core: Fix default return value for _get()" Signed-off-by: Mark Brown <broonie@linaro.org> Tested-by: Guenter Roeck <linux@roeck-us.net> Cc: stable@vger.kernel.org
Diffstat (limited to 'drivers/nfc')
0 files changed, 0 insertions, 0 deletions