Skip to content

Commit fb74e35

Browse files
bijudasThomas Gleixner
authored andcommitted
irqchip/renesas-rzg2l: Fix error path in rzg2l_irqc_common_probe()
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(). [ tglx: Fix up subject and change log to be precise ] Fixes: 7de1136 ("irqchip/renesas-rzg2l: 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/20260325192451.172562-4-biju.das.jz@bp.renesas.com
1 parent 3aa78b8 commit fb74e35

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/irqchip/irq-renesas-rzg2l.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ static int rzg2l_irqc_common_probe(struct platform_device *pdev, struct device_n
577577
irq_domain = irq_domain_create_hierarchy(parent_domain, 0, IRQC_NUM_IRQ, dev_fwnode(dev),
578578
&rzg2l_irqc_domain_ops, rzg2l_irqc_data);
579579
if (!irq_domain) {
580-
pm_runtime_put(dev);
580+
pm_runtime_put_sync(dev);
581581
return -ENOMEM;
582582
}
583583

0 commit comments

Comments
 (0)