aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/auo_k190x.c
diff options
context:
space:
mode:
authorHeiko Stübner <heiko@sntech.de>2013-03-22 10:14:22 -0400
committerTomi Valkeinen <tomi.valkeinen@ti.com>2013-04-04 06:08:06 -0400
commit4e0ab85bb9097ecc422d4237f9eec155993f2902 (patch)
tree0b2751be18067a37b41c417b30f8951ff824d565 /drivers/video/auo_k190x.c
parent70f1e28e65dec704cd49bf7e21c2c372096cf5b3 (diff)
AUO-K190x: set the correct runtime-pm state in recover
In the recover function the device gets powercycled and is after this again active, independent of its previous state. Signed-off-by: Heiko Stübner <heiko@sntech.de> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video/auo_k190x.c')
-rw-r--r--drivers/video/auo_k190x.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/video/auo_k190x.c b/drivers/video/auo_k190x.c
index bc0b6433eae6..17f8d099b177 100644
--- a/drivers/video/auo_k190x.c
+++ b/drivers/video/auo_k190x.c
@@ -588,10 +588,16 @@ static int auok190x_power(struct auok190xfb_par *par, bool on)
588 588
589static void auok190x_recover(struct auok190xfb_par *par) 589static void auok190x_recover(struct auok190xfb_par *par)
590{ 590{
591 struct device *dev = par->info->device;
592
591 auok190x_power(par, 0); 593 auok190x_power(par, 0);
592 msleep(100); 594 msleep(100);
593 auok190x_power(par, 1); 595 auok190x_power(par, 1);
594 596
597 /* after powercycling the device, it's always active */
598 pm_runtime_set_active(dev);
599 par->standby = 0;
600
595 par->init(par); 601 par->init(par);
596 602
597 /* wait for init to complete */ 603 /* wait for init to complete */