at91/avr32/atmel_lcdfb: prepare clk before calling enable
authorBoris BREZILLON <b.brezillon@overkiz.com>
Thu, 18 Jul 2013 07:40:25 +0000 (09:40 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 30 Aug 2013 07:17:35 +0000 (10:17 +0300)
Replace clk_enable/disable with clk_prepare_enable/disable_unprepare to
avoid common clk framework warnings.

Signed-off-by: Boris BREZILLON <b.brezillon@overkiz.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/atmel_lcdfb.c

index effdb373b8db0ffd55d4f56523c8c379f50e4cbc..088511a58a269abc2126f90969a08f3d75a5b22c 100644 (file)
@@ -902,14 +902,14 @@ static int __init atmel_lcdfb_init_fbinfo(struct atmel_lcdfb_info *sinfo)
 
 static void atmel_lcdfb_start_clock(struct atmel_lcdfb_info *sinfo)
 {
-       clk_enable(sinfo->bus_clk);
-       clk_enable(sinfo->lcdc_clk);
+       clk_prepare_enable(sinfo->bus_clk);
+       clk_prepare_enable(sinfo->lcdc_clk);
 }
 
 static void atmel_lcdfb_stop_clock(struct atmel_lcdfb_info *sinfo)
 {
-       clk_disable(sinfo->bus_clk);
-       clk_disable(sinfo->lcdc_clk);
+       clk_disable_unprepare(sinfo->bus_clk);
+       clk_disable_unprepare(sinfo->lcdc_clk);
 }