summaryrefslogtreecommitdiff
path: root/drivers/regulator/da9055-regulator.c
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2014-02-18 16:11:06 +0530
committerMark Brown <broonie@linaro.org>2014-02-20 01:33:53 +0900
commitfe2eb7221870ed30da06a64ddc0eac0501eb615f (patch)
tree25dde3fbe53b340e7e43c6bec0428a6db30b5d4f /drivers/regulator/da9055-regulator.c
parenta4b4e66aadd05b1b8d2492ab914186359a11d0ec (diff)
regulator: da9055: Do not hardcode return value
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>
Diffstat (limited to 'drivers/regulator/da9055-regulator.c')
-rw-r--r--drivers/regulator/da9055-regulator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/da9055-regulator.c b/drivers/regulator/da9055-regulator.c
index 604a6f7c9cbf..8812855f2b33 100644
--- 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;