.. | .. |
---|
163 | 163 | ar7_wdt_enable_wdt(); |
---|
164 | 164 | expect_close = 0; |
---|
165 | 165 | |
---|
166 | | - return nonseekable_open(inode, file); |
---|
| 166 | + return stream_open(inode, file); |
---|
167 | 167 | } |
---|
168 | 168 | |
---|
169 | 169 | static int ar7_wdt_release(struct inode *inode, struct file *file) |
---|
.. | .. |
---|
235 | 235 | ar7_wdt_update_margin(new_margin); |
---|
236 | 236 | ar7_wdt_kick(1); |
---|
237 | 237 | spin_unlock(&wdt_lock); |
---|
238 | | - |
---|
| 238 | + fallthrough; |
---|
239 | 239 | case WDIOC_GETTIMEOUT: |
---|
240 | 240 | if (put_user(margin, (int *)arg)) |
---|
241 | 241 | return -EFAULT; |
---|
.. | .. |
---|
249 | 249 | .owner = THIS_MODULE, |
---|
250 | 250 | .write = ar7_wdt_write, |
---|
251 | 251 | .unlocked_ioctl = ar7_wdt_ioctl, |
---|
| 252 | + .compat_ioctl = compat_ptr_ioctl, |
---|
252 | 253 | .open = ar7_wdt_open, |
---|
253 | 254 | .release = ar7_wdt_release, |
---|
254 | 255 | .llseek = no_llseek, |
---|