mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 10:58:48 +09:00
irqchip/irq-brcmstb-l2: Fix section mismatch
[ 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: 51d9db5c8f ("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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
7a57553d21
commit
1fbdca7341
@@ -157,10 +157,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;
|
||||
@@ -276,14 +274,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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user