提交 f5b89aff 编写于 作者: V Viresh Kumar 提交者: Sebastian Reichel

power-supply: Propagate error returned by power_supply_find_supply_from_node()

Callers of power_supply_find_supply_from_node(), i.e.
power_supply_check_supplies(), must propagate the errors returned by it instead
of returning their own.
Signed-off-by: NViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: NSebastian Reichel <sre@kernel.org>
上级 8468b029
......@@ -221,8 +221,8 @@ static int power_supply_check_supplies(struct power_supply *psy)
of_node_put(np);
if (ret) {
dev_dbg(psy->dev, "Failed to find supply, defer!\n");
return -EPROBE_DEFER;
dev_dbg(psy->dev, "Failed to find supply!\n");
return ret;
}
} while (np);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册