diff options
Diffstat (limited to 'drivers/watchdog/davinci_wdt.c')
-rw-r--r-- | drivers/watchdog/davinci_wdt.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/watchdog/davinci_wdt.c b/drivers/watchdog/davinci_wdt.c index 926b59c41186..802aeba347a0 100644 --- a/drivers/watchdog/davinci_wdt.c +++ b/drivers/watchdog/davinci_wdt.c | |||
@@ -159,14 +159,14 @@ static long davinci_wdt_ioctl(struct file *file, | |||
159 | ret = put_user(0, (int *)arg); | 159 | ret = put_user(0, (int *)arg); |
160 | break; | 160 | break; |
161 | 161 | ||
162 | case WDIOC_GETTIMEOUT: | ||
163 | ret = put_user(heartbeat, (int *)arg); | ||
164 | break; | ||
165 | |||
166 | case WDIOC_KEEPALIVE: | 162 | case WDIOC_KEEPALIVE: |
167 | wdt_service(); | 163 | wdt_service(); |
168 | ret = 0; | 164 | ret = 0; |
169 | break; | 165 | break; |
166 | |||
167 | case WDIOC_GETTIMEOUT: | ||
168 | ret = put_user(heartbeat, (int *)arg); | ||
169 | break; | ||
170 | } | 170 | } |
171 | return ret; | 171 | return ret; |
172 | } | 172 | } |