rk29 backlight;do not call rk29_backlight_set in suspend mode
authoryxj <yxj@rock-chips.com>
Mon, 12 Nov 2012 06:49:51 +0000 (14:49 +0800)
committeryxj <yxj@rock-chips.com>
Mon, 12 Nov 2012 07:50:21 +0000 (15:50 +0800)
drivers/video/backlight/rk29_backlight.c

index b1292464b2a90d08a4582352d1106af69bf2ea9c..6814e96022db16193a13453949448212d63ebd40 100755 (executable)
@@ -228,6 +228,8 @@ EXPORT_SYMBOL(rk29_get_backlight_status);
 
 void rk29_backlight_set(bool on)
 {
+       if(suspend_flag)
+               return 0;
        printk("%s: set %d\n", __func__, on);
        if(on)
                rk29_bl_resume(NULL);