提交 8e82d8d9 编写于 作者: B Boris BREZILLON 提交者: Greg Kroah-Hartman

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: NBoris BREZILLON <b.brezillon@overkiz.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 a8995751
...@@ -41,17 +41,17 @@ extern int usb_disabled(void); ...@@ -41,17 +41,17 @@ extern int usb_disabled(void);
static void at91_start_clock(void) static void at91_start_clock(void)
{ {
clk_enable(hclk); clk_prepare_enable(hclk);
clk_enable(iclk); clk_prepare_enable(iclk);
clk_enable(fclk); clk_prepare_enable(fclk);
clocked = 1; clocked = 1;
} }
static void at91_stop_clock(void) static void at91_stop_clock(void)
{ {
clk_disable(fclk); clk_disable_unprepare(fclk);
clk_disable(iclk); clk_disable_unprepare(iclk);
clk_disable(hclk); clk_disable_unprepare(hclk);
clocked = 0; clocked = 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册