mirror of https://github.com/torvalds/linux.git
irqchip/irq-brcmstb-l2: Fix section mismatch
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>
This commit is contained in:
parent
bfc0c5beab
commit
bbe1775924
|
|
@ -138,10 +138,8 @@ static void brcmstb_l2_intc_resume(struct irq_data *d)
|
|||
irq_reg_writel(gc, ~b->saved_mask, ct->regs.enable);
|
||||
}
|
||||
|
||||
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;
|
||||
|
|
@ -257,14 +255,12 @@ static int __init brcmstb_l2_intc_of_init(struct device_node *np,
|
|||
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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue