projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a4b4e66
)
regulator: da9055: Do not hardcode return value
author
Sachin Kamat
<sachin.kamat@linaro.org>
Tue, 18 Feb 2014 10:41:06 +0000
(16:11 +0530)
committer
Mark Brown
<broonie@linaro.org>
Wed, 19 Feb 2014 16:33:53 +0000
(
01:33
+0900)
Propagate the error value returned by the function instead.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/regulator/da9055-regulator.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/regulator/da9055-regulator.c
b/drivers/regulator/da9055-regulator.c
index 604a6f7c9cbfc39e890ff48592fac2a87d817a15..8812855f2b3305051989974a6dd17e7a61db7b2d 100644
(file)
--- a/
drivers/regulator/da9055-regulator.c
+++ b/
drivers/regulator/da9055-regulator.c
@@
-567,7
+567,7
@@
static int da9055_regulator_dt_init(struct platform_device *pdev,
of_node_put(nproot);
if (ret < 0) {
dev_err(&pdev->dev, "Error matching regulator: %d\n", ret);
- return
-ENODEV
;
+ return
ret
;
}
config->init_data = da9055_reg_matches[regid].init_data;