mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 02:24:24 +02:00
irqchip/irq-bcm7120-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: 3ac268d5ed ("irqchip/irq-bcm7120-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
e9db5332ca
commit
bfc0c5beab
|
|
@ -143,8 +143,7 @@ static int bcm7120_l2_intc_init_one(struct device_node *dn,
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int __init bcm7120_l2_intc_iomap_7120(struct device_node *dn,
|
||||
struct bcm7120_l2_intc_data *data)
|
||||
static int bcm7120_l2_intc_iomap_7120(struct device_node *dn, struct bcm7120_l2_intc_data *data)
|
||||
{
|
||||
int ret;
|
||||
|
||||
|
|
@ -177,8 +176,7 @@ static int __init bcm7120_l2_intc_iomap_7120(struct device_node *dn,
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int __init bcm7120_l2_intc_iomap_3380(struct device_node *dn,
|
||||
struct bcm7120_l2_intc_data *data)
|
||||
static int bcm7120_l2_intc_iomap_3380(struct device_node *dn, struct bcm7120_l2_intc_data *data)
|
||||
{
|
||||
unsigned int gc_idx;
|
||||
|
||||
|
|
@ -208,10 +206,9 @@ static int __init bcm7120_l2_intc_iomap_3380(struct device_node *dn,
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int __init bcm7120_l2_intc_probe(struct device_node *dn,
|
||||
struct device_node *parent,
|
||||
static int bcm7120_l2_intc_probe(struct device_node *dn, struct device_node *parent,
|
||||
int (*iomap_regs_fn)(struct device_node *,
|
||||
struct bcm7120_l2_intc_data *),
|
||||
struct bcm7120_l2_intc_data *),
|
||||
const char *intc_name)
|
||||
{
|
||||
unsigned int clr = IRQ_NOREQUEST | IRQ_NOPROBE | IRQ_NOAUTOEN;
|
||||
|
|
@ -339,15 +336,13 @@ static int __init bcm7120_l2_intc_probe(struct device_node *dn,
|
|||
return ret;
|
||||
}
|
||||
|
||||
static int __init bcm7120_l2_intc_probe_7120(struct device_node *dn,
|
||||
struct device_node *parent)
|
||||
static int bcm7120_l2_intc_probe_7120(struct device_node *dn, struct device_node *parent)
|
||||
{
|
||||
return bcm7120_l2_intc_probe(dn, parent, bcm7120_l2_intc_iomap_7120,
|
||||
"BCM7120 L2");
|
||||
}
|
||||
|
||||
static int __init bcm7120_l2_intc_probe_3380(struct device_node *dn,
|
||||
struct device_node *parent)
|
||||
static int bcm7120_l2_intc_probe_3380(struct device_node *dn, struct device_node *parent)
|
||||
{
|
||||
return bcm7120_l2_intc_probe(dn, parent, bcm7120_l2_intc_iomap_3380,
|
||||
"BCM3380 L2");
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user