Skip to content

Commit

Permalink
ARM: EXYNOS4: Remove compiler warning on exynos4_pwm4_resume
Browse files Browse the repository at this point in the history
Remove compiler warning when no CONFIG_PM

arch/arm/mach-exynos4/time.c:209:
        warning: 'exynos4_pwm4_resume' defined but not used

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
  • Loading branch information
Kyungmin Park authored and Kukjin Kim committed Jun 3, 2011
1 parent f8d8e12 commit 80839a1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/arm/mach-exynos4/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ static cycle_t exynos4_pwm4_read(struct clocksource *cs)
return (cycle_t) ~__raw_readl(S3C_TIMERREG(0x40));
}

#ifdef CONFIG_PM
static void exynos4_pwm4_resume(struct clocksource *cs)
{
unsigned long pclk;
Expand All @@ -218,6 +219,7 @@ static void exynos4_pwm4_resume(struct clocksource *cs)
exynos4_pwm_init(4, ~0);
exynos4_pwm_start(4, 1);
}
#endif

struct clocksource pwm_clocksource = {
.name = "pwm_timer4",
Expand Down

0 comments on commit 80839a1

Please sign in to comment.