hc
2024-01-05 071106ecf68c401173c58808b1cf5f68cc50d390
kernel/drivers/watchdog/acquirewdt.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0+
12 /*
23 * Acquire Single Board Computer Watchdog Timer driver
34 *
....@@ -5,11 +6,6 @@
56 *
67 * (c) Copyright 1996 Alan Cox <alan@lxorguk.ukuu.org.uk>,
78 * All Rights Reserved.
8
- *
9
- * This program is free software; you can redistribute it and/or
10
- * modify it under the terms of the GNU General Public License
11
- * as published by the Free Software Foundation; either version
12
- * 2 of the License, or (at your option) any later version.
139 *
1410 * Neither Alan Cox nor CymruNet Ltd. admit liability nor provide
1511 * warranty for any of this software. This material is provided
....@@ -200,7 +196,7 @@
200196
201197 /* Activate */
202198 acq_keepalive();
203
- return nonseekable_open(inode, file);
199
+ return stream_open(inode, file);
204200 }
205201
206202 static int acq_close(struct inode *inode, struct file *file)
....@@ -225,6 +221,7 @@
225221 .llseek = no_llseek,
226222 .write = acq_write,
227223 .unlocked_ioctl = acq_ioctl,
224
+ .compat_ioctl = compat_ptr_ioctl,
228225 .open = acq_open,
229226 .release = acq_close,
230227 };