diff options
author | Anson Huang <b20788@freescale.com> | 2014-06-20 13:59:55 +0800 |
---|---|---|
committer | Nitin Garg <nitin.garg@freescale.com> | 2015-09-17 08:58:12 -0500 |
commit | d37692ce4e3fcdf88d92fb73d2f5a42cbe7a7c7d (patch) | |
tree | 436b3661e40fa19c1c331151de682b958517d1dc /drivers/regulator | |
parent | 576d9da4b5d1a1ead5d4cdb9513cc69317f79a39 (diff) |
ENGR00319456-1 regulator: core: remove incorrect change of regulator_get
If user do NOT want a dummy regulator returned when
there is no matching regulator found, then they should use
regulator_get_optional instead of regulator_get. So remove
incorrect change.
Signed-off-by: Anson Huang <b20788@freescale.com>
Diffstat (limited to 'drivers/regulator')
-rw-r--r-- | drivers/regulator/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c index cef840fd62ad..427cb625af0a 100644 --- a/drivers/regulator/core.c +++ b/drivers/regulator/core.c @@ -1342,7 +1342,7 @@ static struct regulator *_regulator_get(struct device *dev, const char *id, * If we have return value from dev_lookup fail, we do not expect to * succeed, so, quit with appropriate error value */ - if (ret && ret == -ENODEV) + if (ret && ret != -ENODEV) goto out; if (!devname) |