hc
2024-05-14 bedbef8ad3e75a304af6361af235302bcc61d06b
kernel/drivers/watchdog/rdc321x_wdt.c
....@@ -1,24 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * RDC321x watchdog driver
34 *
45 * Copyright (C) 2007-2010 Florian Fainelli <florian@openwrt.org>
56 *
67 * This driver is highly inspired from the cpu5_wdt driver
7
- *
8
- * This program is free software; you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License as published by
10
- * the Free Software Foundation; either version 2 of the License, or
11
- * (at your option) any later version.
12
- *
13
- * This program is distributed in the hope that it will be useful,
14
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
- * GNU General Public License for more details.
17
- *
18
- * You should have received a copy of the GNU General Public License
19
- * along with this program; if not, write to the Free Software
20
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21
- *
228 */
239
2410 #include <linux/module.h>
....@@ -142,7 +128,7 @@
142128 if (test_and_set_bit(0, &rdc321x_wdt_device.inuse))
143129 return -EBUSY;
144130
145
- return nonseekable_open(inode, file);
131
+ return stream_open(inode, file);
146132 }
147133
148134 static int rdc321x_wdt_release(struct inode *inode, struct file *file)
....@@ -213,6 +199,7 @@
213199 .owner = THIS_MODULE,
214200 .llseek = no_llseek,
215201 .unlocked_ioctl = rdc321x_wdt_ioctl,
202
+ .compat_ioctl = compat_ptr_ioctl,
216203 .open = rdc321x_wdt_open,
217204 .write = rdc321x_wdt_write,
218205 .release = rdc321x_wdt_release,