]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
irqchip/renesas-rzg2l: Fix section mismatch
authorJohan Hovold <johan@kernel.org>
Mon, 13 Oct 2025 09:46:07 +0000 (11:46 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 16 Oct 2025 09:30:38 +0000 (11:30 +0200)
Platform drivers can be probed after their init sections have been
discarded so the irqchip init callbacks must not live in init.

Fixes: d011c022efe27579 ("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>
drivers/irqchip/irq-renesas-rzg2l.c

index 2a54adeb4cc7147bfb86562eb3ebb7124d3f299e..12b6eb1503016e7a4756a794e216ab967d1dd8ea 100644 (file)
@@ -597,14 +597,12 @@ static int rzg2l_irqc_common_init(struct device_node *node, struct device_node *
        return 0;
 }
 
-static int __init rzg2l_irqc_init(struct device_node *node,
-                                 struct device_node *parent)
+static int rzg2l_irqc_init(struct device_node *node, struct device_node *parent)
 {
        return rzg2l_irqc_common_init(node, parent, &rzg2l_irqc_chip);
 }
 
-static int __init rzfive_irqc_init(struct device_node *node,
-                                  struct device_node *parent)
+static int rzfive_irqc_init(struct device_node *node, struct device_node *parent)
 {
        return rzg2l_irqc_common_init(node, parent, &rzfive_irqc_chip);
 }