Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 820f3dd7 authored by Arnd Bergmann's avatar Arnd Bergmann
Browse files

ARM: exynos: fix building with CONFIG_OF disabled



irq_of_parse_and_map does not have an empty definition for the
!CONFIG_OF case, so we should not try to call it then:

arch/arm/mach-exynos/common.c: In function 'combiner_init':
arch/arm/mach-exynos/common.c:576:3: warning: implicit declaration of function 'irq_of_parse_and_map'

Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
parent 6d49d535
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -568,7 +568,11 @@ void __init combiner_init(void __iomem *combiner_base, struct device_node *np)

	for (i = 0; i < max_nr; i++) {
		combiner_init_one(i, combiner_base + (i >> 2) * 0x10);
		irq = np ? irq_of_parse_and_map(np, i) : IRQ_SPI(i);
		irq = IRQ_SPI(i);
#ifdef CONFIG_OF
		if (np)
			irq = irq_of_parse_and_map(np, i);
#endif
		combiner_cascade_irq(i, irq);
	}
}