hc
2024-05-10 61598093bbdd283a7edc367d900f223070ead8d2
kernel/drivers/watchdog/indydog.c
....@@ -1,13 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * IndyDog 0.3 A Hardware Watchdog Device for SGI IP22
34 *
45 * (c) Copyright 2002 Guido Guenther <agx@sigxcpu.org>,
56 * All Rights Reserved.
6
- *
7
- * This program is free software; you can redistribute it and/or
8
- * modify it under the terms of the GNU General Public License
9
- * as published by the Free Software Foundation; either version
10
- * 2 of the License, or (at your option) any later version.
117 *
128 * based on softdog.c by Alan Cox <alan@lxorguk.ukuu.org.uk>
139 */
....@@ -77,7 +73,7 @@
7773
7874 pr_info("Started watchdog timer\n");
7975
80
- return nonseekable_open(inode, file);
76
+ return stream_open(inode, file);
8177 }
8278
8379 static int indydog_release(struct inode *inode, struct file *file)
....@@ -156,6 +152,7 @@
156152 .llseek = no_llseek,
157153 .write = indydog_write,
158154 .unlocked_ioctl = indydog_ioctl,
155
+ .compat_ioctl = compat_ptr_ioctl,
159156 .open = indydog_open,
160157 .release = indydog_release,
161158 };