projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
caf003f
)
ARM HDLCD: Add missing clk_{un}prepare calls
author
Jon Medhurst
<tixy@linaro.org>
Wed, 13 Jun 2012 08:45:43 +0000
(09:45 +0100)
committer
Jon Medhurst
<tixy@linaro.org>
Mon, 1 Jul 2013 10:04:24 +0000
(11:04 +0100)
Signed-off-by: Jon Medhurst <tixy@linaro.org>
drivers/video/arm-hdlcd.c
patch
|
blob
|
history
diff --git
a/drivers/video/arm-hdlcd.c
b/drivers/video/arm-hdlcd.c
index 3e103a5c9b57d67b606f864a40d14ff9b38d0b78..221004379c754b4b370bda1099177b64a1adc76c 100644
(file)
--- 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 */