Skip to content

Commit

Permalink
ARM: EXYNOS: Fix build error without CONFIG_LOCAL_TIMERS
Browse files Browse the repository at this point in the history
arch/arm/mach-exynos/mct.c: In function 'exynos4_timer_resources':
arch/arm/mach-exynos/mct.c:450: error: 'exynos4_mct_tick_isr' undeclared (first use in this function)
arch/arm/mach-exynos/mct.c:450: error: (Each undeclared identifier is reported only once
arch/arm/mach-exynos/mct.c:450: error: for each function it appears in.)
make[1]: *** [arch/arm/mach-exynos/mct.o] Error 1

Reported-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: Changhwan Youn <chaos.youn@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Cc: Marc Zyngier <marc.zyngier@arm.com>
  • Loading branch information
Kukjin Kim committed Dec 8, 2011
1 parent e248cd5 commit 991a6c7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions arch/arm/mach-exynos/mct.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ struct mct_clock_event_device {
char name[10];
};

static DEFINE_PER_CPU(struct mct_clock_event_device, percpu_mct_tick);

static void exynos4_mct_write(unsigned int value, void *addr)
{
void __iomem *stat_addr;
Expand Down Expand Up @@ -264,6 +262,9 @@ static void exynos4_clockevent_init(void)
}

#ifdef CONFIG_LOCAL_TIMERS

static DEFINE_PER_CPU(struct mct_clock_event_device, percpu_mct_tick);

/* Clock event handling */
static void exynos4_mct_tick_stop(struct mct_clock_event_device *mevt)
{
Expand Down Expand Up @@ -447,6 +448,7 @@ static void __init exynos4_timer_resources(void)

clk_rate = clk_get_rate(mct_clk);

#ifdef CONFIG_LOCAL_TIMERS
if (mct_int_type == MCT_INT_PPI) {
int err;

Expand All @@ -456,6 +458,7 @@ static void __init exynos4_timer_resources(void)
WARN(err, "MCT: can't request IRQ %d (%d)\n",
IRQ_MCT_LOCALTIMER, err);
}
#endif /* CONFIG_LOCAL_TIMERS */
}

static void __init exynos4_timer_init(void)
Expand Down

0 comments on commit 991a6c7

Please sign in to comment.