rk fb: modify wake_up_interruptible to wake_up for update_regs_wait
authorzwl <zwl@rock-chips.com>
Wed, 11 Jun 2014 07:00:17 +0000 (15:00 +0800)
committerzwl <zwl@rock-chips.com>
Wed, 11 Jun 2014 07:00:35 +0000 (15:00 +0800)
drivers/video/rockchip/rk_fb.c

index 7545d2389f5ad325c82ba90f7a20abd77edeca59..e1ed621108a7d26672ccdc6cc034fbc708850220 100755 (executable)
@@ -1578,7 +1578,7 @@ static void rk_fb_update_regs_handler(struct kthread_work *work)
        }
 
        if (dev_drv->wait_fs && list_empty(&dev_drv->update_regs_list))
-               wake_up_interruptible_all(&dev_drv->update_regs_wait);
+               wake_up(&dev_drv->update_regs_wait);
 }
 
 static int rk_fb_check_config_var(struct rk_fb_area_par *area_par,
@@ -1938,12 +1938,11 @@ static int rk_fb_set_win_config(struct fb_info *info,
                                        list_empty(&saved_list);
                mutex_unlock(&dev_drv->update_regs_list_lock);
                if (!list_is_empty)
-                       ret = wait_event_interruptible(dev_drv->update_regs_wait,
+                       wait_event(dev_drv->update_regs_wait,
                                list_empty(&dev_drv->update_regs_list) && list_empty(&saved_list));
-               if (!ret) {
-                       rk_fb_update_reg(dev_drv, regs);
-                       kfree(regs);
-               }
+
+               rk_fb_update_reg(dev_drv, regs);
+               kfree(regs);
        }
 
 err: