Commit fe2eb722 authored by Sachin Kamat's avatar Sachin Kamat Committed by Mark Brown

regulator: da9055: Do not hardcode return value

Propagate the error value returned by the function instead.
Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent a4b4e66a
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment