aboutsummaryrefslogtreecommitdiff
path: root/drivers/video/arm-hdlcd.c
diff options
context:
space:
mode:
authorJon Medhurst <tixy@linaro.org>2012-06-13 09:45:43 +0100
committerJon Medhurst <tixy@linaro.org>2014-03-31 13:58:07 +0100
commit043d125c5ca6cc04ce02b3f1edf240266335c2ef (patch)
tree0263d53791298bba34cc1706fc20894a2bad9720 /drivers/video/arm-hdlcd.c
parentb719a06c50ab2b36f08541c345abbfcb62046ed6 (diff)
ARM HDLCD: Add missing clk_{un}prepare calls
Signed-off-by: Jon Medhurst <tixy@linaro.org>
Diffstat (limited to 'drivers/video/arm-hdlcd.c')
-rw-r--r--drivers/video/arm-hdlcd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/video/arm-hdlcd.c b/drivers/video/arm-hdlcd.c
index 3e103a5c9b5..221004379c7 100644
--- a/drivers/video/arm-hdlcd.c
+++ b/drivers/video/arm-hdlcd.c
@@ -219,6 +219,7 @@ static int hdlcd_set_par(struct fb_info *info)
hdlcd_set_output_mode(hdlcd->fb.var.xres, hdlcd->fb.var.yres);
+ clk_prepare(hdlcd->clk);
clk_set_rate(hdlcd->clk, (1000000000 / hdlcd->fb.var.pixclock) * 1000);
clk_enable(hdlcd->clk);
@@ -674,6 +675,7 @@ static int hdlcd_remove(struct platform_device *pdev)
struct hdlcd_device *hdlcd = platform_get_drvdata(pdev);
clk_disable(hdlcd->clk);
+ clk_unprepare(hdlcd->clk);
clk_put(hdlcd->clk);
/* unmap memory */