提交 fe2eb722 编写于 作者: S Sachin Kamat 提交者: Mark Brown

regulator: da9055: Do not hardcode return value

Propagate the error value returned by the function instead.
Signed-off-by: NSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: NMark Brown <broonie@linaro.org>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册