hc
2024-01-04 1543e317f1da31b75942316931e8f491a8920811
kernel/drivers/watchdog/sbc_epx_c3.c
....@@ -1,14 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * SBC EPX C3 0.1 A Hardware Watchdog Device for the Winsystems EPX-C3
34 * single board computer
45 *
56 * (c) Copyright 2006 Calin A. Culianu <calin@ajvar.org>, All Rights
67 * Reserved.
7
- *
8
- * This program is free software; you can redistribute it and/or
9
- * modify it under the terms of the GNU General Public License
10
- * as published by the Free Software Foundation; either version
11
- * 2 of the License, or (at your option) any later version.
128 *
139 * based on softdog.c by Alan Cox <alan@lxorguk.ukuu.org.uk>
1410 */
....@@ -78,7 +74,7 @@
7874 epx_c3_alive = 1;
7975 pr_info("Started watchdog timer\n");
8076
81
- return nonseekable_open(inode, file);
77
+ return stream_open(inode, file);
8278 }
8379
8480 static int epx_c3_release(struct inode *inode, struct file *file)
....@@ -160,6 +156,7 @@
160156 .llseek = no_llseek,
161157 .write = epx_c3_write,
162158 .unlocked_ioctl = epx_c3_ioctl,
159
+ .compat_ioctl = compat_ptr_ioctl,
163160 .open = epx_c3_open,
164161 .release = epx_c3_release,
165162 };