.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * AMD Elan SC520 processor Watchdog Timer driver |
---|
3 | 4 | * |
---|
4 | 5 | * Based on acquirewdt.c by Alan Cox, |
---|
5 | 6 | * and sbc60xxwdt.c by Jakob Oestergaard <jakob@unthought.net> |
---|
6 | | - * |
---|
7 | | - * This program is free software; you can redistribute it and/or |
---|
8 | | - * modify it under the terms of the GNU General Public License |
---|
9 | | - * as published by the Free Software Foundation; either version |
---|
10 | | - * 2 of the License, or (at your option) any later version. |
---|
11 | 7 | * |
---|
12 | 8 | * The authors do NOT admit liability nor provide warranty for |
---|
13 | 9 | * any of this software. This material is provided "AS-IS" in |
---|
.. | .. |
---|
258 | 254 | |
---|
259 | 255 | /* Good, fire up the show */ |
---|
260 | 256 | wdt_startup(); |
---|
261 | | - return nonseekable_open(inode, file); |
---|
| 257 | + return stream_open(inode, file); |
---|
262 | 258 | } |
---|
263 | 259 | |
---|
264 | 260 | static int fop_close(struct inode *inode, struct file *file) |
---|
.. | .. |
---|
324 | 320 | return -EINVAL; |
---|
325 | 321 | |
---|
326 | 322 | wdt_keepalive(); |
---|
327 | | - /* Fall through */ |
---|
328 | 323 | } |
---|
| 324 | + fallthrough; |
---|
329 | 325 | case WDIOC_GETTIMEOUT: |
---|
330 | 326 | return put_user(timeout, p); |
---|
331 | 327 | default: |
---|
.. | .. |
---|
340 | 336 | .open = fop_open, |
---|
341 | 337 | .release = fop_close, |
---|
342 | 338 | .unlocked_ioctl = fop_ioctl, |
---|
| 339 | + .compat_ioctl = compat_ptr_ioctl, |
---|
343 | 340 | }; |
---|
344 | 341 | |
---|
345 | 342 | static struct miscdevice wdt_miscdev = { |
---|