From: Binbin Zhou Date: Mon, 12 Oct 2015 01:48:27 +0000 (+0800) Subject: staging: sm750fb: Fix the power state error in resume X-Git-Tag: Ubuntu-snapdragon-4.4.0-1050.54~7207^2~1048 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=31557ea0337eb3db5937f441bfa028caba5836d6;p=mirror_ubuntu-artful-kernel.git staging: sm750fb: Fix the power state error in resume The PM_EVENT_RESUME state is needed when SM750 resume, otherwise it will be failed in the second time of continuous suspend/resume. Cc: Sudip Mukherjee Signed-off-by: Binbin Zhou Reviewed-by: Huacai Chen Reviewed-by: Teddy Wang Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/sm750fb/sm750.c b/drivers/staging/sm750fb/sm750.c index 494017f5235c..8c1ecb32f953 100644 --- a/drivers/staging/sm750fb/sm750.c +++ b/drivers/staging/sm750fb/sm750.c @@ -511,6 +511,7 @@ static int lynxfb_resume(struct pci_dev *pdev) fb_set_suspend(info, 0); } + pdev->dev.power.power_state.event = PM_EVENT_RESUME; console_unlock(); return ret; }