1
0
Fork 0

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>
hifive-unleashed-5.1
Sachin Kamat 2014-02-18 16:11:06 +05:30 committed by Mark Brown
parent a4b4e66aad
commit fe2eb72218
1 changed files with 1 additions and 1 deletions

View File

@ -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;