mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
watchdog imx2: prepare clk before enabling it
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
60178b6329
commit
4e7b6c9a6b
1 changed files with 1 additions and 1 deletions
|
|
@ -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 */
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue