]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
USB: ohci-at91: prepare clk before calling enable
authorBoris BREZILLON <b.brezillon@overkiz.com>
Wed, 19 Jun 2013 11:21:08 +0000 (13:21 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Jun 2013 23:21:52 +0000 (16:21 -0700)
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ohci-at91.c

index 2ee1496dbc1d37c1f778d847712f78437abe21a4..9677f6831209709d8ea7c42b97c91af3959c000d 100644 (file)
@@ -41,17 +41,17 @@ extern int usb_disabled(void);
 
 static void at91_start_clock(void)
 {
-       clk_enable(hclk);
-       clk_enable(iclk);
-       clk_enable(fclk);
+       clk_prepare_enable(hclk);
+       clk_prepare_enable(iclk);
+       clk_prepare_enable(fclk);
        clocked = 1;
 }
 
 static void at91_stop_clock(void)
 {
-       clk_disable(fclk);
-       clk_disable(iclk);
-       clk_disable(hclk);
+       clk_disable_unprepare(fclk);
+       clk_disable_unprepare(iclk);
+       clk_disable_unprepare(hclk);
        clocked = 0;
 }