diff options
author | Wayne Zou <b36644@freescale.com> | 2012-08-20 12:50:12 +0800 |
---|---|---|
committer | Wayne Zou <b36644@freescale.com> | 2012-08-21 19:04:44 +0800 |
commit | eff10078016132decd5d4eb745d02dfe4cbb2afd (patch) | |
tree | 0f7c313bd667b4ac88e9d629fb4056abcdaeba25 /drivers | |
parent | 613b00c1fd8f91695f328cceb7da9a033e153a09 (diff) |
ENGR00220913 LDB: disable LDB DI clock when suspend
Disable LDB DI clock when suspend.
Signed-off-by: Wayne Zou <b36644@freescale.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/video/mxc/ldb.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/video/mxc/ldb.c b/drivers/video/mxc/ldb.c index 41233d465a5b..296a148a6d8d 100644 --- a/drivers/video/mxc/ldb.c +++ b/drivers/video/mxc/ldb.c @@ -315,7 +315,14 @@ int ldb_fb_event(struct notifier_block *nb, unsigned long val, void *v) writel(data, ldb->control_reg); } } + break; } + case FB_EVENT_SUSPEND: + if (ldb->setting[index].clk_en) { + clk_disable(ldb->setting[index].ldb_di_clk); + ldb->setting[index].clk_en = false; + } + break; default: break; } |