summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorAnatolij Gustschin <agust@denx.de>2011-11-15 13:21:01 +0000
committerWolfgang Denk <wd@denx.de>2011-11-16 21:37:01 +0100
commit7a1b07eef94c7e1c6eebccd2b8a258f9a56991b9 (patch)
treeeef3aabe59da8356f54d1be343333d67573da7dc /arch
parent5dfc9e146a839271114dcad3f5a7501f8661dca0 (diff)
downloadu-boot-imx-7a1b07eef94c7e1c6eebccd2b8a258f9a56991b9.zip
u-boot-imx-7a1b07eef94c7e1c6eebccd2b8a258f9a56991b9.tar.gz
u-boot-imx-7a1b07eef94c7e1c6eebccd2b8a258f9a56991b9.tar.bz2
arch/arm/cpu/armv7/s5p-common/pwm.c: fix GCC 4.6 warning
Fix: pwm.c: In function 'pwm_config': pwm.c:85:16: warning: variable 'timer_rate_hz' set but not used [-Wunused-but-set-variable] Signed-off-by: Anatolij Gustschin <agust@denx.de>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/cpu/armv7/s5p-common/pwm.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/arm/cpu/armv7/s5p-common/pwm.c b/arch/arm/cpu/armv7/s5p-common/pwm.c
index ff95b84..58d279e 100644
--- a/arch/arm/cpu/armv7/s5p-common/pwm.c
+++ b/arch/arm/cpu/armv7/s5p-common/pwm.c
@@ -82,7 +82,6 @@ int pwm_config(int pwm_id, int duty_ns, int period_ns)
unsigned long period;
unsigned long tcon;
unsigned long tcnt;
- unsigned long timer_rate_hz;
unsigned long tcmp;
/*
@@ -100,7 +99,6 @@ int pwm_config(int pwm_id, int duty_ns, int period_ns)
/* Check to see if we are changing the clock rate of the PWM */
tin_rate = pwm_calc_tin(pwm_id, period);
- timer_rate_hz = tin_rate;
tin_ns = NS_IN_HZ / tin_rate;
tcnt = period_ns / tin_ns;