diff options
author | Peng Fan <peng.fan@nxp.com> | 2021-11-16 09:42:27 +0300 |
---|---|---|
committer | Sudeep Holla <sudeep.holla@arm.com> | 2021-11-17 14:24:50 +0300 |
commit | 1446fc6c678e8d8b31606a4b877abe205f344b38 (patch) | |
tree | f513a07364eb306973abe6e8b9529652539bc3ec /drivers/firmware | |
parent | d1cbd9e0f7e51ae8e3638a36ba884fdbb2fc967e (diff) | |
download | linux-1446fc6c678e8d8b31606a4b877abe205f344b38.tar.xz |
firmware: arm_scmi: pm: Propagate return value to caller
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: 898216c97ed2 ("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>
Diffstat (limited to 'drivers/firmware')
-rw-r--r-- | drivers/firmware/arm_scmi/scmi_pm_domain.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/firmware/arm_scmi/scmi_pm_domain.c b/drivers/firmware/arm_scmi/scmi_pm_domain.c index 4371fdcd5a73..581d34c95769 100644 --- a/drivers/firmware/arm_scmi/scmi_pm_domain.c +++ b/drivers/firmware/arm_scmi/scmi_pm_domain.c @@ -138,9 +138,7 @@ static int scmi_pm_domain_probe(struct scmi_device *sdev) scmi_pd_data->domains = domains; scmi_pd_data->num_domains = num_domains; - of_genpd_add_provider_onecell(np, scmi_pd_data); - - return 0; + return of_genpd_add_provider_onecell(np, scmi_pd_data); } static const struct scmi_device_id scmi_id_table[] = { |