* [PATCH] fixup! pmdomain: add Rockchip power domain support
@ 2025-12-02 16:32 Ahmad Fatoum
2025-12-03 8:46 ` Sascha Hauer
0 siblings, 1 reply; 2+ messages in thread
From: Ahmad Fatoum @ 2025-12-02 16:32 UTC (permalink / raw)
To: barebox; +Cc: Ahmad Fatoum
pmdomain: rockchip: skip skipping message when nothing skipped
if ngpd == 0, there are no subdomains and there was nothing skipped, so
suppress the message in that case.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
drivers/pmdomain/rockchip/pm-domains.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/pmdomain/rockchip/pm-domains.c b/drivers/pmdomain/rockchip/pm-domains.c
index debe36a175c4..a30ff8fb22af 100644
--- a/drivers/pmdomain/rockchip/pm-domains.c
+++ b/drivers/pmdomain/rockchip/pm-domains.c
@@ -864,8 +864,9 @@ static int rockchip_pm_add_subdomain(struct rockchip_pmu *pmu,
* TODO: implement pm_genpd_add_subdomain() support for barebox.
* Until we need to, just let the user know about it
*/
- dev_info(pmu->dev, "%s: skipping %u nested power domains\n",
- parent->name, ngpd);
+ if (ngpd)
+ dev_info(pmu->dev, "%s: skipping %u nested power domains\n",
+ parent->name, ngpd);
return 0;
}
--
2.47.3
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-12-03 8:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-12-02 16:32 [PATCH] fixup! pmdomain: add Rockchip power domain support Ahmad Fatoum
2025-12-03 8:46 ` Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox