Skip to content

Commit

Permalink
watchdog imx2: prepare clk before enabling it
Browse files Browse the repository at this point in the history
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
  • Loading branch information
Sascha Hauer committed Apr 25, 2012
1 parent 60178b6 commit 4e7b6c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/watchdog/imx2_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ static void imx2_wdt_start(void)
{
if (!test_and_set_bit(IMX2_WDT_STATUS_STARTED, &imx2_wdt.status)) {
/* at our first start we enable clock and do initialisations */
clk_enable(imx2_wdt.clk);
clk_prepare_enable(imx2_wdt.clk);

imx2_wdt_setup();
} else /* delete the timer that pings the watchdog after close */
Expand Down

0 comments on commit 4e7b6c9

Please sign in to comment.