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

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

Fixes: 51d9db5c8fbb ("irqchip/irq-brcmstb-l2: Switch to IRQCHIP_PLATFORM_DRIVER")
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/irqchip/irq-brcmstb-l2.c

index c988886917f73910a81403057f325430e98f751c..60863b2548f5a359e9ee5d169666f675530d3aa1 100644 (file)
@@ -168,10 +168,8 @@ static void brcmstb_l2_intc_resume(struct irq_data *d)
        irq_gc_unlock_irqrestore(gc, flags);
 }
 
-static int __init brcmstb_l2_intc_of_init(struct device_node *np,
-                                         struct device_node *parent,
-                                         const struct brcmstb_intc_init_params
-                                         *init_params)
+static int brcmstb_l2_intc_of_init(struct device_node *np, struct device_node *parent,
+                                  const struct brcmstb_intc_init_params *init_params)
 {
        unsigned int clr = IRQ_NOREQUEST | IRQ_NOPROBE | IRQ_NOAUTOEN;
        unsigned int set = 0;
@@ -287,14 +285,12 @@ out_free:
        return ret;
 }
 
-static int __init brcmstb_l2_edge_intc_of_init(struct device_node *np,
-       struct device_node *parent)
+static int brcmstb_l2_edge_intc_of_init(struct device_node *np, struct device_node *parent)
 {
        return brcmstb_l2_intc_of_init(np, parent, &l2_edge_intc_init);
 }
 
-static int __init brcmstb_l2_lvl_intc_of_init(struct device_node *np,
-       struct device_node *parent)
+static int brcmstb_l2_lvl_intc_of_init(struct device_node *np, struct device_node *parent)
 {
        return brcmstb_l2_intc_of_init(np, parent, &l2_lvl_intc_init);
 }