]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
irqchip/renesas-rzg2l: Fix section mismatch
authorJohan Hovold <johan@kernel.org>
Mon, 13 Oct 2025 09:46:07 +0000 (11:46 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Dec 2025 12:54:43 +0000 (13:54 +0100)
[ Upstream commit 5b338fbb2b5b21d61a9eaba14dcf43108de30258 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/irqchip/irq-renesas-rzg2l.c

index 99e27e01b0b19ff2a1526c958e2db2bd505be76a..d83dfc10ff49e5ca328bd638cf2991c3ee69b4cc 100644 (file)
@@ -613,14 +613,12 @@ pm_disable:
        return ret;
 }
 
-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);
 }