Skip to content

Commit

Permalink
ARM: EXYNOS: Fix compilation error when CONFIG_OF is not defined
Browse files Browse the repository at this point in the history
Fixed following compile time error.
arch/arm/mach-exynos/common.c: In function 'exynos5_init_irq':
arch/arm/mach-exynos/common.c:539:2: error: implicit declaration of function 'of_irq_init'
arch/arm/mach-exynos/common.c:539:14: error: 'exynos4_dt_irq_match' undeclared (first use in this function)
arch/arm/mach-exynos/common.c:539:14: note: each undeclared identifier is reported only once for each function it appears in

Cc: Thomas Abraham <thomas.abraham@linaro.org>
Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
  • Loading branch information
Tushar Behera authored and Kukjin Kim committed Apr 24, 2012
1 parent ffabec4 commit 6fff5a1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/arm/mach-exynos/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,9 @@ void __init exynos5_init_irq(void)
{
int irq;

#ifdef CONFIG_OF
of_irq_init(exynos4_dt_irq_match);
#endif

for (irq = 0; irq < EXYNOS5_MAX_COMBINER_NR; irq++) {
combiner_init(irq, (void __iomem *)S5P_VA_COMBINER(irq),
Expand Down

0 comments on commit 6fff5a1

Please sign in to comment.