提交 a85c2551 编写于 作者: P Peng Fan 提交者: Zheng Zengkai

firmware: arm_scmi: pm: Propagate return value to caller

stable inclusion
from stable-v5.10.83
commit c9ba7864d3a2bfaabd9dca31b0ea8e914d3333d5
bugzilla: 185879 https://gitee.com/openeuler/kernel/issues/I4QUVG

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=c9ba7864d3a2bfaabd9dca31b0ea8e914d3333d5

--------------------------------

[ Upstream commit 1446fc6c ]

of_genpd_add_provider_onecell may return error, so let's propagate
its return value to caller

Link: https://lore.kernel.org/r/20211116064227.20571-1-peng.fan@oss.nxp.com
Fixes: 898216c9 ("firmware: arm_scmi: add device power domain support using genpd")
Signed-off-by: NPeng Fan <peng.fan@nxp.com>
Signed-off-by: NSudeep Holla <sudeep.holla@arm.com>
Signed-off-by: NSasha Levin <sashal@kernel.org>
Signed-off-by: NChen Jun <chenjun102@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 4844bacf
...@@ -106,9 +106,7 @@ static int scmi_pm_domain_probe(struct scmi_device *sdev) ...@@ -106,9 +106,7 @@ static int scmi_pm_domain_probe(struct scmi_device *sdev)
scmi_pd_data->domains = domains; scmi_pd_data->domains = domains;
scmi_pd_data->num_domains = num_domains; scmi_pd_data->num_domains = num_domains;
of_genpd_add_provider_onecell(np, scmi_pd_data); return of_genpd_add_provider_onecell(np, scmi_pd_data);
return 0;
} }
static const struct scmi_device_id scmi_id_table[] = { static const struct scmi_device_id scmi_id_table[] = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册