hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/watchdog/cpu5wdt.c
....@@ -1,22 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * sma cpu5 watchdog driver
34 *
45 * Copyright (C) 2003 Heiko Ronsdorf <hero@ihg.uni-duisburg.de>
5
- *
6
- * This program is free software; you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License as published by
8
- * the Free Software Foundation; either version 2 of the License, or
9
- * (at your option) any later version.
10
- *
11
- * This program is distributed in the hope that it will be useful,
12
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- * GNU General Public License for more details.
15
- *
16
- * You should have received a copy of the GNU General Public License
17
- * along with this program; if not, write to the Free Software
18
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19
- *
206 */
217
228 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
....@@ -140,7 +126,7 @@
140126 {
141127 if (test_and_set_bit(0, &cpu5wdt_device.inuse))
142128 return -EBUSY;
143
- return nonseekable_open(inode, file);
129
+ return stream_open(inode, file);
144130 }
145131
146132 static int cpu5wdt_release(struct inode *inode, struct file *file)
....@@ -201,6 +187,7 @@
201187 .owner = THIS_MODULE,
202188 .llseek = no_llseek,
203189 .unlocked_ioctl = cpu5wdt_ioctl,
190
+ .compat_ioctl = compat_ptr_ioctl,
204191 .open = cpu5wdt_open,
205192 .write = cpu5wdt_write,
206193 .release = cpu5wdt_release,