hc
2024-05-14 bedbef8ad3e75a304af6361af235302bcc61d06b
kernel/drivers/watchdog/wdt977.c
....@@ -1,14 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Wdt977 0.04: A Watchdog Device for Netwinder W83977AF chip
34 *
45 * (c) Copyright 1998 Rebel.com (Woody Suwalski <woody@netwinder.org>)
56 *
67 * -----------------------
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.
128 *
139 * -----------------------
1410 * 14-Dec-2001 Matt Domsch <Matt_Domsch@dell.com>
....@@ -273,7 +269,7 @@
273269 __module_get(THIS_MODULE);
274270
275271 wdt977_start();
276
- return nonseekable_open(inode, file);
272
+ return stream_open(inode, file);
277273 }
278274
279275 static int wdt977_release(struct inode *inode, struct file *file)
....@@ -402,7 +398,7 @@
402398 return -EINVAL;
403399
404400 wdt977_keepalive();
405
- /* Fall */
401
+ fallthrough;
406402
407403 case WDIOC_GETTIMEOUT:
408404 return put_user(timeout, uarg.i);
....@@ -426,6 +422,7 @@
426422 .llseek = no_llseek,
427423 .write = wdt977_write,
428424 .unlocked_ioctl = wdt977_ioctl,
425
+ .compat_ioctl = compat_ptr_ioctl,
429426 .open = wdt977_open,
430427 .release = wdt977_release,
431428 };