mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 10:29:37 +00:00
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>
This commit is contained in:
parent
a899575191
commit
8e82d8d98a
1 changed files with 6 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue