[tip: irq/drivers] irqchip/renesas-rzv2h: Fix error path in rzv2h_icu_probe_common()

tip-bot2 for Biju Das posted 1 patch 1 week ago
drivers/irqchip/irq-renesas-rzv2h.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[tip: irq/drivers] irqchip/renesas-rzv2h: Fix error path in rzv2h_icu_probe_common()
Posted by tip-bot2 for Biju Das 1 week ago
The following commit has been merged into the irq/drivers branch of tip:

Commit-ID:     897cf98926429c8671a9009442883c2f62deae96
Gitweb:        https://git.kernel.org/tip/897cf98926429c8671a9009442883c2f62deae96
Author:        Biju Das <biju.das.jz@bp.renesas.com>
AuthorDate:    Mon, 23 Mar 2026 12:49:14 
Committer:     Thomas Gleixner <tglx@kernel.org>
CommitterDate: Thu, 26 Mar 2026 16:12:01 +01:00

irqchip/renesas-rzv2h: Fix error path in rzv2h_icu_probe_common()

Replace pm_runtime_put() with pm_runtime_put_sync() when
irq_domain_create_hierarchy() fails to ensure the device suspends
synchronously before devres cleanup disables runtime PM via
pm_runtime_disable().

Fixes: 5ec8cabc3b86 ("irqchip/renesas-rzv2h: Use devm_pm_runtime_enable()")
Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Link: https://patch.msgid.link/20260323124917.41602-1-biju.das.jz@bp.renesas.com
---
 drivers/irqchip/irq-renesas-rzv2h.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/irqchip/irq-renesas-rzv2h.c b/drivers/irqchip/irq-renesas-rzv2h.c
index da2bc43..03e93b0 100644
--- a/drivers/irqchip/irq-renesas-rzv2h.c
+++ b/drivers/irqchip/irq-renesas-rzv2h.c
@@ -621,7 +621,7 @@ static int rzv2h_icu_probe_common(struct platform_device *pdev, struct device_no
 	return 0;
 
 pm_put:
-	pm_runtime_put(&pdev->dev);
+	pm_runtime_put_sync(&pdev->dev);
 
 	return ret;
 }