diff options
author | Jon Medhurst <tixy@linaro.org> | 2012-06-13 09:45:43 +0100 |
---|---|---|
committer | Jon Medhurst <tixy@linaro.org> | 2012-07-16 14:21:44 +0100 |
commit | 46466d4b074878267ad806469f31f30769fda97e (patch) | |
tree | 9083e8188fee650c77de0ca107d871dd94ff3983 /drivers | |
parent | e4235b41de087d135bac5ab5ff6e8c599967704e (diff) |
ARM HDLCD: Add missing clk_{un}prepare calls
Signed-off-by: Jon Medhurst <tixy@linaro.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/video/arm-hdlcd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/video/arm-hdlcd.c b/drivers/video/arm-hdlcd.c index fbaf679e6d40..eb29ce6d5b9a 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 */ |