Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4e7b6c9a authored by Sascha Hauer's avatar Sascha Hauer
Browse files

watchdog imx2: prepare clk before enabling it

parent 60178b63
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -121,7 +121,7 @@ static void imx2_wdt_start(void)
{
{
	if (!test_and_set_bit(IMX2_WDT_STATUS_STARTED, &imx2_wdt.status)) {
	if (!test_and_set_bit(IMX2_WDT_STATUS_STARTED, &imx2_wdt.status)) {
		/* at our first start we enable clock and do initialisations */
		/* at our first start we enable clock and do initialisations */
		clk_enable(imx2_wdt.clk);
		clk_prepare_enable(imx2_wdt.clk);


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