diff options
author | Philipp Zabel <pzabel@gmx.de> | 2012-03-15 14:12:00 -0400 |
---|---|---|
committer | Florian Tobias Schandinat <FlorianSchandinat@gmx.de> | 2012-03-21 06:29:01 -0400 |
commit | b622f1b538f91ab320838656fc0b31d11a67c5fc (patch) | |
tree | a1c9e890cc8d5964ee89374d1f8213105c97e6c1 /drivers/video/pxafb.c | |
parent | cfc4bcfe84e14b858dc6a1ab6bbf34d69edabc27 (diff) |
video: pxafb: add clk_prepare/clk_unprepare calls
This patch adds clk_prepare/clk_unprepare calls to the pxafb
driver by using the helper functions clk_prepare_enable and
clk_disable_unprepare.
Signed-off-by: Philipp Zabel <philipp.zabel@gmail.com>
Cc: Haojian Zhuang <haojian.zhuang@marvell.com>
Cc: Eric Miao <eric.y.miao@gmail.com>
Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Diffstat (limited to 'drivers/video/pxafb.c')
-rw-r--r-- | drivers/video/pxafb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/video/pxafb.c b/drivers/video/pxafb.c index c176561a2222..3f902557690e 100644 --- a/drivers/video/pxafb.c +++ b/drivers/video/pxafb.c | |||
@@ -1435,7 +1435,7 @@ static void pxafb_enable_controller(struct pxafb_info *fbi) | |||
1435 | pr_debug("reg_lccr3 0x%08x\n", (unsigned int) fbi->reg_lccr3); | 1435 | pr_debug("reg_lccr3 0x%08x\n", (unsigned int) fbi->reg_lccr3); |
1436 | 1436 | ||
1437 | /* enable LCD controller clock */ | 1437 | /* enable LCD controller clock */ |
1438 | clk_enable(fbi->clk); | 1438 | clk_prepare_enable(fbi->clk); |
1439 | 1439 | ||
1440 | if (fbi->lccr0 & LCCR0_LCDT) | 1440 | if (fbi->lccr0 & LCCR0_LCDT) |
1441 | return; | 1441 | return; |
@@ -1475,7 +1475,7 @@ static void pxafb_disable_controller(struct pxafb_info *fbi) | |||
1475 | wait_for_completion_timeout(&fbi->disable_done, 200 * HZ / 1000); | 1475 | wait_for_completion_timeout(&fbi->disable_done, 200 * HZ / 1000); |
1476 | 1476 | ||
1477 | /* disable LCD controller clock */ | 1477 | /* disable LCD controller clock */ |
1478 | clk_disable(fbi->clk); | 1478 | clk_disable_unprepare(fbi->clk); |
1479 | } | 1479 | } |
1480 | 1480 | ||
1481 | /* | 1481 | /* |