diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2014-02-18 10:41:06 (GMT) |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-02-19 16:33:53 (GMT) |
commit | fe2eb7221870ed30da06a64ddc0eac0501eb615f (patch) | |
tree | 25dde3fbe53b340e7e43c6bec0428a6db30b5d4f /drivers/regulator/da9055-regulator.c | |
parent | a4b4e66aadd05b1b8d2492ab914186359a11d0ec (diff) | |
download | linux-fe2eb7221870ed30da06a64ddc0eac0501eb615f.tar.xz |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/da9055-regulator.c b/drivers/regulator/da9055-regulator.c index 604a6f7..8812855 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; |