]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
irqchip/starfive-jh8100: Fix section mismatch
authorJohan Hovold <johan@kernel.org>
Mon, 13 Oct 2025 09:46:08 +0000 (11:46 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Dec 2025 13:02:31 +0000 (14:02 +0100)
[ Upstream commit f798bdb9aa81c425184f92e3d0b44d3b53d10da7 ]

Platform drivers can be probed after their init sections have been
discarded so the irqchip init callback must not live in init.

Fixes: e4e535036173 ("irqchip: Add StarFive external interrupt controller")
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Changhuang Liang <changhuang.liang@starfivetech.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/irqchip/irq-starfive-jh8100-intc.c

index 2460798ec158b649ca41da3beec5b9d5b96ef257..117f2c651ebd00e9c4585f88f3c196b5150fde48 100644 (file)
@@ -114,8 +114,7 @@ static void starfive_intc_irq_handler(struct irq_desc *desc)
        chained_irq_exit(chip, desc);
 }
 
-static int __init starfive_intc_init(struct device_node *intc,
-                                    struct device_node *parent)
+static int starfive_intc_init(struct device_node *intc, struct device_node *parent)
 {
        struct starfive_irq_chip *irqc;
        struct reset_control *rst;