Skip to content

Commit c9ba786

Browse files
MrVangregkh
authored andcommitted
firmware: arm_scmi: pm: Propagate return value to caller
[ Upstream commit 1446fc6 ] 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: 898216c ("firmware: arm_scmi: add device power domain support using genpd") Signed-off-by: Peng Fan <peng.fan@nxp.com> Signed-off-by: Sudeep Holla <sudeep.holla@arm.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 8730a67 commit c9ba786

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎drivers/firmware/arm_scmi/scmi_pm_domain.c‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,7 @@ static int scmi_pm_domain_probe(struct scmi_device *sdev)
106106
scmi_pd_data->domains = domains;
107107
scmi_pd_data->num_domains = num_domains;
108108

109-
of_genpd_add_provider_onecell(np, scmi_pd_data);
110-
111-
return 0;
109+
return of_genpd_add_provider_onecell(np, scmi_pd_data);
112110
}
113111

114112
static const struct scmi_device_id scmi_id_table[] = {

0 commit comments

Comments
 (0)