[PATCH] fixup! pmdomain: add Rockchip power domain support

Ahmad Fatoum a.fatoum at pengutronix.de
Tue Dec 2 08:32:52 PST 2025


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 at 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




More information about the barebox mailing list