mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
irqchip/irq-bcm7038-l1: Fix section mismatch
Platform drivers can be probed after their init sections have been
discarded so the irqchip init callback must not live in init.
Fixes: c057c799e3 ("irqchip/irq-bcm7038-l1: 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:
committed by
Thomas Gleixner
parent
a8452d1d59
commit
e9db5332ca
@@ -219,9 +219,8 @@ static int bcm7038_l1_set_affinity(struct irq_data *d,
|
||||
}
|
||||
#endif
|
||||
|
||||
static int __init bcm7038_l1_init_one(struct device_node *dn,
|
||||
unsigned int idx,
|
||||
struct bcm7038_l1_chip *intc)
|
||||
static int bcm7038_l1_init_one(struct device_node *dn, unsigned int idx,
|
||||
struct bcm7038_l1_chip *intc)
|
||||
{
|
||||
struct resource res;
|
||||
resource_size_t sz;
|
||||
@@ -395,8 +394,7 @@ static const struct irq_domain_ops bcm7038_l1_domain_ops = {
|
||||
.map = bcm7038_l1_map,
|
||||
};
|
||||
|
||||
static int __init bcm7038_l1_of_init(struct device_node *dn,
|
||||
struct device_node *parent)
|
||||
static int bcm7038_l1_of_init(struct device_node *dn, struct device_node *parent)
|
||||
{
|
||||
struct bcm7038_l1_chip *intc;
|
||||
int idx, ret;
|
||||
|
||||
Reference in New Issue
Block a user