Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

irqchip/clps711x: Remove unused clps711x_intc_init() function

This function has no caller or declaration any more:

drivers/irqchip/irq-clps711x.c:215:13: error: no previous prototype for 'clps711x_intc_init'

The #ifdef check around clps711x_intc_init_dt() is also not
needed since the file is only built when that is enabled.

Fixes: 4a56f46a7dc6 ("ARM: clps711x: Remove boards support")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20230516200516.554663-3-arnd@kernel.org

authored by

Arnd Bergmann and committed by
Marc Zyngier
eee284fe f1771b85

-7
-7
drivers/irqchip/irq-clps711x.c
··· 212 212 return err; 213 213 } 214 214 215 - void __init clps711x_intc_init(phys_addr_t base, resource_size_t size) 216 - { 217 - BUG_ON(_clps711x_intc_init(NULL, base, size)); 218 - } 219 - 220 - #ifdef CONFIG_IRQCHIP 221 215 static int __init clps711x_intc_init_dt(struct device_node *np, 222 216 struct device_node *parent) 223 217 { ··· 225 231 return _clps711x_intc_init(np, res.start, resource_size(&res)); 226 232 } 227 233 IRQCHIP_DECLARE(clps711x, "cirrus,ep7209-intc", clps711x_intc_init_dt); 228 - #endif