Commit cfafb62f authored by Boris BREZILLON's avatar Boris BREZILLON Committed by Greg Kroah-Hartman

ehci-atmel.c: prepare clk before calling enable

Replace clk_enable/disable with clk_prepare_enable/disable_unprepare to
avoid common clk framework warnings.
Signed-off-by: default avatarBoris BREZILLON <b.brezillon@overkiz.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 8e82d8d9
......@@ -37,15 +37,15 @@ static int clocked;
static void atmel_start_clock(void)
{
clk_enable(iclk);
clk_enable(fclk);
clk_prepare_enable(iclk);
clk_prepare_enable(fclk);
clocked = 1;
}
static void atmel_stop_clock(void)
{
clk_disable(fclk);
clk_disable(iclk);
clk_disable_unprepare(fclk);
clk_disable_unprepare(iclk);
clocked = 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment