Skip to content

Commit f798bdb

Browse files
jhovoldKAGA-KOKO
authored andcommitted
irqchip/starfive-jh8100: 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: e4e5350 ("irqchip: Add StarFive external interrupt controller") Signed-off-by: Johan Hovold <johan@kernel.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Changhuang Liang <changhuang.liang@starfivetech.com>
1 parent 5b338fb commit f798bdb

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

drivers/irqchip/irq-starfive-jh8100-intc.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,7 @@ static void starfive_intc_irq_handler(struct irq_desc *desc)
114114
chained_irq_exit(chip, desc);
115115
}
116116

117-
static int __init starfive_intc_init(struct device_node *intc,
118-
struct device_node *parent)
117+
static int starfive_intc_init(struct device_node *intc, struct device_node *parent)
119118
{
120119
struct starfive_irq_chip *irqc;
121120
struct reset_control *rst;

0 commit comments

Comments
 (0)