.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * Wdt977 0.04: A Watchdog Device for Netwinder W83977AF chip |
---|
3 | 4 | * |
---|
4 | 5 | * (c) Copyright 1998 Rebel.com (Woody Suwalski <woody@netwinder.org>) |
---|
5 | 6 | * |
---|
6 | 7 | * ----------------------- |
---|
7 | | - * |
---|
8 | | - * This program is free software; you can redistribute it and/or |
---|
9 | | - * modify it under the terms of the GNU General Public License |
---|
10 | | - * as published by the Free Software Foundation; either version |
---|
11 | | - * 2 of the License, or (at your option) any later version. |
---|
12 | 8 | * |
---|
13 | 9 | * ----------------------- |
---|
14 | 10 | * 14-Dec-2001 Matt Domsch <Matt_Domsch@dell.com> |
---|
.. | .. |
---|
273 | 269 | __module_get(THIS_MODULE); |
---|
274 | 270 | |
---|
275 | 271 | wdt977_start(); |
---|
276 | | - return nonseekable_open(inode, file); |
---|
| 272 | + return stream_open(inode, file); |
---|
277 | 273 | } |
---|
278 | 274 | |
---|
279 | 275 | static int wdt977_release(struct inode *inode, struct file *file) |
---|
.. | .. |
---|
402 | 398 | return -EINVAL; |
---|
403 | 399 | |
---|
404 | 400 | wdt977_keepalive(); |
---|
405 | | - /* Fall */ |
---|
| 401 | + fallthrough; |
---|
406 | 402 | |
---|
407 | 403 | case WDIOC_GETTIMEOUT: |
---|
408 | 404 | return put_user(timeout, uarg.i); |
---|
.. | .. |
---|
426 | 422 | .llseek = no_llseek, |
---|
427 | 423 | .write = wdt977_write, |
---|
428 | 424 | .unlocked_ioctl = wdt977_ioctl, |
---|
| 425 | + .compat_ioctl = compat_ptr_ioctl, |
---|
429 | 426 | .open = wdt977_open, |
---|
430 | 427 | .release = wdt977_release, |
---|
431 | 428 | }; |
---|