Skip to content

Commit 5b338fb

Browse files
jhovoldKAGA-KOKO
authored andcommitted
irqchip/renesas-rzg2l: Fix section mismatch
Platform drivers can be probed after their init sections have been discarded so the irqchip init callbacks must not live in init. Fixes: d011c02 ("irqchip/renesas-rzg2l: Add support for RZ/Five SoC") Signed-off-by: Johan Hovold <johan@kernel.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
1 parent 64acfd8 commit 5b338fb

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

drivers/irqchip/irq-renesas-rzg2l.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -597,14 +597,12 @@ static int rzg2l_irqc_common_init(struct device_node *node, struct device_node *
597597
return 0;
598598
}
599599

600-
static int __init rzg2l_irqc_init(struct device_node *node,
601-
struct device_node *parent)
600+
static int rzg2l_irqc_init(struct device_node *node, struct device_node *parent)
602601
{
603602
return rzg2l_irqc_common_init(node, parent, &rzg2l_irqc_chip);
604603
}
605604

606-
static int __init rzfive_irqc_init(struct device_node *node,
607-
struct device_node *parent)
605+
static int rzfive_irqc_init(struct device_node *node, struct device_node *parent)
608606
{
609607
return rzg2l_irqc_common_init(node, parent, &rzfive_irqc_chip);
610608
}

0 commit comments

Comments
 (0)