From: Jon Medhurst Date: Wed, 13 Jun 2012 08:45:43 +0000 (+0100) Subject: ARM HDLCD: Add missing clk_{un}prepare calls X-Git-Tag: firefly_0821_release~3680^2~236^2^2~11^2~12 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=7c7d3b31d5e22bed91202c022932e4bde0cf1822;p=firefly-linux-kernel-4.4.55.git ARM HDLCD: Add missing clk_{un}prepare calls Signed-off-by: Jon Medhurst --- diff --git a/drivers/video/arm-hdlcd.c b/drivers/video/arm-hdlcd.c index 3e103a5c9b57..221004379c75 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 */