Skip to content

Commit

Permalink
irqchip/renesas-rzg2l: Remove pm_put label
Browse files Browse the repository at this point in the history
No need to keep label `pm_put`, as it's only used once.
Call pm_runtime_put() directly from the error path.

Signed-off-by: Fabrizio Castro <fabrizio.castro.jz@renesas.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Link: https://lore.kernel.org/all/20250212182034.366167-5-fabrizio.castro.jz@renesas.com
  • Loading branch information
Fabrizio Castro authored and Thomas Gleixner committed Feb 18, 2025
1 parent 7de1136 commit bec8a37
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions drivers/irqchip/irq-renesas-rzg2l.c
Original file line number Diff line number Diff line change
Expand Up @@ -586,9 +586,9 @@ static int rzg2l_irqc_common_init(struct device_node *node, struct device_node *
node, &rzg2l_irqc_domain_ops,
rzg2l_irqc_data);
if (!irq_domain) {
pm_runtime_put(dev);
dev_err(dev, "failed to add irq domain\n");
ret = -ENOMEM;
goto pm_put;
return -ENOMEM;
}

register_syscore_ops(&rzg2l_irqc_syscore_ops);
Expand All @@ -605,11 +605,6 @@ static int rzg2l_irqc_common_init(struct device_node *node, struct device_node *
dev = NULL;

return 0;

pm_put:
pm_runtime_put(dev);

return ret;
}

static int __init rzg2l_irqc_init(struct device_node *node,
Expand Down

0 comments on commit bec8a37

Please sign in to comment.