Skip to contentSkip to conversation

ARM: exynos4: remove compiler warning: 'exynos4_pwm4_resume'

PATCH New Kyungmin Park 2 participants 2 messages Jun 2, 2011 – Jun 3, 2011

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: exynos4: remove compiler warning: 'exynos4_pwm4_resume'

From: Kyungmin Park <[email protected]>

Remove compiler warning when no CONFIG_PM

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

---

arch/arm/mach-exynos4/time.c +2 -0
index 86b9fa0..ebb8f38 100644
@@ -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;
@@ -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",
#1 lore raw

PATCH 1/1 ARM: exynos4: remove compiler warning: 'exynos4_pwm4_resume'

Quoted 22 lines · Kyungmin Park

From: Kyungmin Park<[email protected]>

Remove compiler warning when no CONFIG_PM

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

---

arch/arm/mach-exynos4/time.c +1 -0
index 86b9fa0..ebb8f38 100644
@@ -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;

arch/arm/mach-exynos4/time.c static void exynos4_pwm4_resume(struct clocksource *cs) · line 225

Quoted 7 lines
arch/arm/mach-exynos4/time.c +1 -0
@@ -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",

OK, will apply.

Thanks.

Best regards,
Kgene.
--
Kukjin Kim <[email protected]>, Senior Engineer, SW Solution Development Team, Samsung Electronics Co., Ltd.