]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - arch/arm/cpu/armv7/s5p-common/pwm.c
arch/arm/cpu/armv7/s5p-common/pwm.c: fix GCC 4.6 warning
[karo-tx-uboot.git] / arch / arm / cpu / armv7 / s5p-common / pwm.c
index ff95b84f5505d9ea63bb1ee635ae5ae5f696ad55..58d279e003ff0df2ffd34b3373343fd232f95aa2 100644 (file)
@@ -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;