Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Boris BREZILLON and committed by
Greg Kroah-Hartman
8e82d8d9 a8995751

+6 -6
+6 -6
drivers/usb/host/ohci-at91.c
··· 41 41 42 42 static void at91_start_clock(void) 43 43 { 44 - clk_enable(hclk); 45 - clk_enable(iclk); 46 - clk_enable(fclk); 44 + clk_prepare_enable(hclk); 45 + clk_prepare_enable(iclk); 46 + clk_prepare_enable(fclk); 47 47 clocked = 1; 48 48 } 49 49 50 50 static void at91_stop_clock(void) 51 51 { 52 - clk_disable(fclk); 53 - clk_disable(iclk); 54 - clk_disable(hclk); 52 + clk_disable_unprepare(fclk); 53 + clk_disable_unprepare(iclk); 54 + clk_disable_unprepare(hclk); 55 55 clocked = 0; 56 56 } 57 57