Skip to contentSkip to conversation

ARM: SAMSUNG: Remove unusued variable 'running'

PATCH Applied [email protected] 2 participants 2 messages Apr 27, 2012 – Jun 21, 2012

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

PATCH 1/1 ARM: SAMSUNG: Remove unusued variable 'running'

From: Jonghwan Choi <[email protected]>

This variable is indeed no longer in use.

---
 arch/arm/plat-samsung/pwm.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
arch/arm/plat-samsung/pwm.c +0 -4
index c559d84..d358305 100644
@@ -36,7 +36,6 @@ struct pwm_device {
 	unsigned int		 duty_ns;
 
 	unsigned char		 tcon_base;
-	unsigned char		 running;
 	unsigned char		 use_count;
 	unsigned char		 pwm_id;
 };
@@ -116,7 +115,6 @@ int pwm_enable(struct pwm_device *pwm)
 
 	local_irq_restore(flags);
 
-	pwm->running = 1;
 	return 0;
 }
 
@@ -134,8 +132,6 @@ void pwm_disable(struct pwm_device *pwm)
 	__raw_writel(tcon, S3C2410_TCON);
 
 	local_irq_restore(flags);
-
-	pwm->running = 0;
 }
 
 EXPORT_SYMBOL(pwm_disable);
Signature · 1 line
1.7.0.4
Applied
#1 lore raw
Quoted 40 lines · [email protected] wrote:

From: Jonghwan Choi <[email protected]>

This variable is indeed no longer in use.

---
 arch/arm/plat-samsung/pwm.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
arch/arm/plat-samsung/pwm.c +0 -5
index c559d84..d358305 100644
@@ -36,7 +36,6 @@ struct pwm_device {
 	unsigned int		 duty_ns;
 
 	unsigned char		 tcon_base;
-	unsigned char		 running;
 	unsigned char		 use_count;
 	unsigned char		 pwm_id;
 };
@@ -116,7 +115,6 @@ int pwm_enable(struct pwm_device *pwm)
 
 	local_irq_restore(flags);
 
-	pwm->running = 1;
 	return 0;
 }
 
@@ -134,8 +132,6 @@ void pwm_disable(struct pwm_device *pwm)
 	__raw_writel(tcon, S3C2410_TCON);
 
 	local_irq_restore(flags);
-
-	pwm->running = 0;
 }
 
 EXPORT_SYMBOL(pwm_disable);
--
Quoted 1 line

1.7.0.4

Applied, thanks.

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