* [PATCH] firmware: arm_scmi: pm: propagate return value to caller
@ 2021-11-16 6:42 Peng Fan (OSS)
2021-11-18 12:10 ` Sudeep Holla
0 siblings, 1 reply; 2+ messages in thread
From: Peng Fan (OSS) @ 2021-11-16 6:42 UTC (permalink / raw)
To: sudeep.holla, cristian.marussi; +Cc: linux-arm-kernel, linux-kernel, Peng Fan
From: Peng Fan <peng.fan@nxp.com>
of_genpd_add_provider_onecell may return error, so let's propagate
its return value to caller
Signed-off-by: Peng Fan <peng.fan@nxp.com>
---
drivers/firmware/arm_scmi/scmi_pm_domain.c | 4 +---
1 file changed, 1 insertion(+), 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[] = {
--
2.30.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] firmware: arm_scmi: pm: propagate return value to caller
2021-11-16 6:42 [PATCH] firmware: arm_scmi: pm: propagate return value to caller Peng Fan (OSS)
@ 2021-11-18 12:10 ` Sudeep Holla
0 siblings, 0 replies; 2+ messages in thread
From: Sudeep Holla @ 2021-11-18 12:10 UTC (permalink / raw)
To: cristian.marussi, Peng Fan (OSS)
Cc: Sudeep Holla, Peng Fan, linux-arm-kernel, linux-kernel
On Tue, 16 Nov 2021 14:42:27 +0800, Peng Fan (OSS) wrote:
> From: Peng Fan <peng.fan@nxp.com>
>
> of_genpd_add_provider_onecell may return error, so let's propagate
> its return value to caller
>
>
Applied to sudeep.holla/linux (for-next/scmi), thanks!
[1/1] firmware: arm_scmi: pm: propagate return value to caller
https://git.kernel.org/sudeep.holla/c/1446fc6c67
--
Regards,
Sudeep
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-11-18 12:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-16 6:42 [PATCH] firmware: arm_scmi: pm: propagate return value to caller Peng Fan (OSS)
2021-11-18 12:10 ` Sudeep Holla
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).