hc
2024-05-14 bedbef8ad3e75a304af6361af235302bcc61d06b
kernel/drivers/watchdog/alim1535_wdt.c
....@@ -1,10 +1,6 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Watchdog for the 7101 PMU version found in the ALi M1535 chipsets
3
- *
4
- * This program is free software; you can redistribute it and/or
5
- * modify it under the terms of the GNU General Public License
6
- * as published by the Free Software Foundation; either version
7
- * 2 of the License, or (at your option) any later version.
84 */
95
106 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
....@@ -224,7 +220,7 @@
224220 return -EINVAL;
225221 ali_keepalive();
226222 }
227
- /* fall through */
223
+ fallthrough;
228224 case WDIOC_GETTIMEOUT:
229225 return put_user(timeout, p);
230226 default:
....@@ -249,7 +245,7 @@
249245
250246 /* Activate */
251247 ali_start();
252
- return nonseekable_open(inode, file);
248
+ return stream_open(inode, file);
253249 }
254250
255251 /*
....@@ -366,6 +362,7 @@
366362 .llseek = no_llseek,
367363 .write = ali_write,
368364 .unlocked_ioctl = ali_ioctl,
365
+ .compat_ioctl = compat_ptr_ioctl,
369366 .open = ali_open,
370367 .release = ali_release,
371368 };