summaryrefslogtreecommitdiffstats
path: root/drivers/regulator/da9055-regulator.c
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2014-02-18 11:41:06 +0100
committerMark Brown <broonie@linaro.org>2014-02-19 17:33:53 +0100
commitfe2eb7221870ed30da06a64ddc0eac0501eb615f (patch)
tree25dde3fbe53b340e7e43c6bec0428a6db30b5d4f /drivers/regulator/da9055-regulator.c
parentregulator: da9055: Use of_get_child_by_name (diff)
downloadlinux-fe2eb7221870ed30da06a64ddc0eac0501eb615f.tar.xz
linux-fe2eb7221870ed30da06a64ddc0eac0501eb615f.zip
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;