hc
2024-05-14 bedbef8ad3e75a304af6361af235302bcc61d06b
kernel/drivers/watchdog/alim7101_wdt.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * ALi M7101 PMU Computer Watchdog Timer driver
34 *
....@@ -214,7 +215,7 @@
214215 return -EBUSY;
215216 /* Good, fire up the show */
216217 wdt_startup();
217
- return nonseekable_open(inode, file);
218
+ return stream_open(inode, file);
218219 }
219220
220221 static int fop_close(struct inode *inode, struct file *file)
....@@ -277,8 +278,8 @@
277278 return -EINVAL;
278279 timeout = new_timeout;
279280 wdt_keepalive();
280
- /* Fall through */
281281 }
282
+ fallthrough;
282283 case WDIOC_GETTIMEOUT:
283284 return put_user(timeout, p);
284285 default:
....@@ -293,6 +294,7 @@
293294 .open = fop_open,
294295 .release = fop_close,
295296 .unlocked_ioctl = fop_ioctl,
297
+ .compat_ioctl = compat_ptr_ioctl,
296298 };
297299
298300 static struct miscdevice wdt_miscdev = {