hc
2024-05-14 bedbef8ad3e75a304af6361af235302bcc61d06b
kernel/drivers/watchdog/mixcomwd.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * MixCom Watchdog: A Simple Hardware Watchdog Device
34 * Based on Softdog driver by Alan Cox and PC Watchdog driver by Ken Hollis
....@@ -5,11 +6,6 @@
56 * Author: Gergely Madarasz <gorgo@itc.hu>
67 *
78 * Copyright (c) 1999 ITConsult-Pro Co. <info@itc.hu>
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 * Version 0.1 (99/04/15):
1511 * - first version
....@@ -36,7 +32,6 @@
3632 * - make mixcomwd_opened unsigned,
3733 * removed lock_kernel/unlock_kernel from mixcomwd_release,
3834 * modified ioctl a bit to conform to API
39
- *
4035 */
4136
4237 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
....@@ -150,7 +145,7 @@
150145 mixcomwd_timer_alive = 0;
151146 }
152147 }
153
- return nonseekable_open(inode, file);
148
+ return stream_open(inode, file);
154149 }
155150
156151 static int mixcomwd_release(struct inode *inode, struct file *file)
....@@ -232,6 +227,7 @@
232227 .llseek = no_llseek,
233228 .write = mixcomwd_write,
234229 .unlocked_ioctl = mixcomwd_ioctl,
230
+ .compat_ioctl = compat_ptr_ioctl,
235231 .open = mixcomwd_open,
236232 .release = mixcomwd_release,
237233 };