diff options
author | Boris BREZILLON <b.brezillon@overkiz.com> | 2013-06-19 07:21:08 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-06-24 19:21:52 -0400 |
commit | 8e82d8d98addfecf83c9d42ca78294a8d16070b9 (patch) | |
tree | c15421d914fb323ac500e754ea591a5f8df2eb07 /drivers/usb/host/ohci-at91.c | |
parent | a899575191ba85a71401f2c8f36bec7b14487043 (diff) |
USB: ohci-at91: prepare clk before calling enable
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>
Diffstat (limited to 'drivers/usb/host/ohci-at91.c')
-rw-r--r-- | drivers/usb/host/ohci-at91.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/usb/host/ohci-at91.c b/drivers/usb/host/ohci-at91.c index 2ee1496dbc1d..9677f6831209 100644 --- a/drivers/usb/host/ohci-at91.c +++ b/drivers/usb/host/ohci-at91.c | |||
@@ -41,17 +41,17 @@ extern int usb_disabled(void); | |||
41 | 41 | ||
42 | static void at91_start_clock(void) | 42 | static void at91_start_clock(void) |
43 | { | 43 | { |
44 | clk_enable(hclk); | 44 | clk_prepare_enable(hclk); |
45 | clk_enable(iclk); | 45 | clk_prepare_enable(iclk); |
46 | clk_enable(fclk); | 46 | clk_prepare_enable(fclk); |
47 | clocked = 1; | 47 | clocked = 1; |
48 | } | 48 | } |
49 | 49 | ||
50 | static void at91_stop_clock(void) | 50 | static void at91_stop_clock(void) |
51 | { | 51 | { |
52 | clk_disable(fclk); | 52 | clk_disable_unprepare(fclk); |
53 | clk_disable(iclk); | 53 | clk_disable_unprepare(iclk); |
54 | clk_disable(hclk); | 54 | clk_disable_unprepare(hclk); |
55 | clocked = 0; | 55 | clocked = 0; |
56 | } | 56 | } |
57 | 57 | ||