aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/watchdog/sb_wdog.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/watchdog/sb_wdog.c')
-rw-r--r--drivers/watchdog/sb_wdog.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/watchdog/sb_wdog.c b/drivers/watchdog/sb_wdog.c
index c8b544ce77fb..528097651f7f 100644
--- a/drivers/watchdog/sb_wdog.c
+++ b/drivers/watchdog/sb_wdog.c
@@ -182,6 +182,11 @@ static long sbwdog_ioctl(struct file *file, unsigned int cmd,
182 ret = put_user(0, p); 182 ret = put_user(0, p);
183 break; 183 break;
184 184
185 case WDIOC_KEEPALIVE:
186 sbwdog_pet(user_dog);
187 ret = 0;
188 break;
189
185 case WDIOC_SETTIMEOUT: 190 case WDIOC_SETTIMEOUT:
186 ret = get_user(time, p); 191 ret = get_user(time, p);
187 if (ret) 192 if (ret)
@@ -203,11 +208,6 @@ static long sbwdog_ioctl(struct file *file, unsigned int cmd,
203 */ 208 */
204 ret = put_user(__raw_readq(user_dog - 8) / 1000000, p); 209 ret = put_user(__raw_readq(user_dog - 8) / 1000000, p);
205 break; 210 break;
206
207 case WDIOC_KEEPALIVE:
208 sbwdog_pet(user_dog);
209 ret = 0;
210 break;
211 } 211 }
212 return ret; 212 return ret;
213} 213}