aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2014-02-18 05:41:06 -0500
committerMark Brown <broonie@linaro.org>2014-02-19 11:33:53 -0500
commitfe2eb7221870ed30da06a64ddc0eac0501eb615f (patch)
tree25dde3fbe53b340e7e43c6bec0428a6db30b5d4f
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>
-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,
567 of_node_put(nproot); 567 of_node_put(nproot);
568 if (ret < 0) { 568 if (ret < 0) {
569 dev_err(&pdev->dev, "Error matching regulator: %d\n", ret); 569 dev_err(&pdev->dev, "Error matching regulator: %d\n", ret);
570 return -ENODEV; 570 return ret;
571 } 571 }
572 572
573 config->init_data = da9055_reg_matches[regid].init_data; 573 config->init_data = da9055_reg_matches[regid].init_data;