Skip to content

Commit

Permalink
video: pxafb: add clk_prepare/clk_unprepare calls
Browse files Browse the repository at this point in the history
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 <[email protected]>
Cc: Haojian Zhuang <[email protected]>
Cc: Eric Miao <[email protected]>
Signed-off-by: Florian Tobias Schandinat <[email protected]>
  • Loading branch information
pH5 authored and schandinat committed Mar 21, 2012
1 parent cfc4bcf commit b622f1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/video/pxafb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1435,7 +1435,7 @@ static void pxafb_enable_controller(struct pxafb_info *fbi)
pr_debug("reg_lccr3 0x%08x\n", (unsigned int) fbi->reg_lccr3);

/* enable LCD controller clock */
clk_enable(fbi->clk);
clk_prepare_enable(fbi->clk);

if (fbi->lccr0 & LCCR0_LCDT)
return;
Expand Down Expand Up @@ -1475,7 +1475,7 @@ static void pxafb_disable_controller(struct pxafb_info *fbi)
wait_for_completion_timeout(&fbi->disable_done, 200 * HZ / 1000);

/* disable LCD controller clock */
clk_disable(fbi->clk);
clk_disable_unprepare(fbi->clk);
}

/*
Expand Down

0 comments on commit b622f1b

Please sign in to comment.