File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -68,8 +68,7 @@ static int npcm_wdt_start(struct watchdog_device *wdd)
68
68
struct npcm_wdt * wdt = to_npcm_wdt (wdd );
69
69
u32 val ;
70
70
71
- if (wdt -> clk )
72
- clk_prepare_enable (wdt -> clk );
71
+ clk_prepare_enable (wdt -> clk );
73
72
74
73
if (wdd -> timeout < 2 )
75
74
val = 0x800 ;
@@ -105,8 +104,7 @@ static int npcm_wdt_stop(struct watchdog_device *wdd)
105
104
106
105
writel (0 , wdt -> reg );
107
106
108
- if (wdt -> clk )
109
- clk_disable_unprepare (wdt -> clk );
107
+ clk_disable_unprepare (wdt -> clk );
110
108
111
109
return 0 ;
112
110
}
@@ -156,8 +154,7 @@ static int npcm_wdt_restart(struct watchdog_device *wdd,
156
154
struct npcm_wdt * wdt = to_npcm_wdt (wdd );
157
155
158
156
/* For reset, we start the WDT clock and leave it running. */
159
- if (wdt -> clk )
160
- clk_prepare_enable (wdt -> clk );
157
+ clk_prepare_enable (wdt -> clk );
161
158
162
159
writel (NPCM_WTR | NPCM_WTRE | NPCM_WTE , wdt -> reg );
163
160
udelay (1000 );
You can’t perform that action at this time.
0 commit comments