diff options
Diffstat (limited to 'drivers/watchdog/indydog.c')
-rw-r--r-- | drivers/watchdog/indydog.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/watchdog/indydog.c b/drivers/watchdog/indydog.c index 0bffea37404e..73c9e7992feb 100644 --- a/drivers/watchdog/indydog.c +++ b/drivers/watchdog/indydog.c | |||
@@ -128,11 +128,6 @@ static long indydog_ioctl(struct file *file, unsigned int cmd, | |||
128 | case WDIOC_GETSTATUS: | 128 | case WDIOC_GETSTATUS: |
129 | case WDIOC_GETBOOTSTATUS: | 129 | case WDIOC_GETBOOTSTATUS: |
130 | return put_user(0, (int *)arg); | 130 | return put_user(0, (int *)arg); |
131 | case WDIOC_KEEPALIVE: | ||
132 | indydog_ping(); | ||
133 | return 0; | ||
134 | case WDIOC_GETTIMEOUT: | ||
135 | return put_user(WATCHDOG_TIMEOUT, (int *)arg); | ||
136 | case WDIOC_SETOPTIONS: | 131 | case WDIOC_SETOPTIONS: |
137 | { | 132 | { |
138 | if (get_user(options, (int *)arg)) | 133 | if (get_user(options, (int *)arg)) |
@@ -147,6 +142,11 @@ static long indydog_ioctl(struct file *file, unsigned int cmd, | |||
147 | } | 142 | } |
148 | return retval; | 143 | return retval; |
149 | } | 144 | } |
145 | case WDIOC_KEEPALIVE: | ||
146 | indydog_ping(); | ||
147 | return 0; | ||
148 | case WDIOC_GETTIMEOUT: | ||
149 | return put_user(WATCHDOG_TIMEOUT, (int *)arg); | ||
150 | default: | 150 | default: |
151 | return -ENOTTY; | 151 | return -ENOTTY; |
152 | } | 152 | } |