diff options
-rw-r--r-- | drivers/char/watchdog/w83697hf_wdt.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/char/watchdog/w83697hf_wdt.c b/drivers/char/watchdog/w83697hf_wdt.c index b1f225798500..6a357a818c8a 100644 --- a/drivers/char/watchdog/w83697hf_wdt.c +++ b/drivers/char/watchdog/w83697hf_wdt.c | |||
@@ -76,6 +76,12 @@ w83697hf_unlock(void) | |||
76 | outb_p(0x87, W83697HF_EFER); /* Again according to manual */ | 76 | outb_p(0x87, W83697HF_EFER); /* Again according to manual */ |
77 | } | 77 | } |
78 | 78 | ||
79 | static inline void | ||
80 | w83697hf_lock(void) | ||
81 | { | ||
82 | outb_p(0xAA, W83697HF_EFER); /* Leave extended function mode */ | ||
83 | } | ||
84 | |||
79 | static void | 85 | static void |
80 | w83697hf_select_wd_register(void) | 86 | w83697hf_select_wd_register(void) |
81 | { | 87 | { |
@@ -93,7 +99,7 @@ w83697hf_select_wd_register(void) | |||
93 | static void | 99 | static void |
94 | w83697hf_unselect_wd_register(void) | 100 | w83697hf_unselect_wd_register(void) |
95 | { | 101 | { |
96 | outb_p(0xAA, W83697HF_EFER); /* Leave extended function mode */ | 102 | w83697hf_lock(); |
97 | } | 103 | } |
98 | 104 | ||
99 | static void | 105 | static void |