backlight: clk_disable should appear after clk_enable
authorlyx <lyx@rock-chips.com>
Fri, 8 Oct 2010 02:51:17 +0000 (19:51 -0700)
committerlyx <lyx@rock-chips.com>
Fri, 8 Oct 2010 10:34:27 +0000 (03:34 -0700)
drivers/video/backlight/rk2818_backlight.c [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index c2d9d7c..c660d64
@@ -198,7 +198,8 @@ static void rk2818_bl_suspend(struct early_suspend *h)
     DBG("%s: ==========  suspend  =============== \n",__func__); 
 
     write_pwm_reg(id, PWM_REG_HRC, divh);
-       clk_disable(pwm_clk);
+       if (!suspend_flag)
+               clk_disable(pwm_clk);
 
     suspend_flag = 1;