hc
2024-05-14 bedbef8ad3e75a304af6361af235302bcc61d06b
kernel/drivers/watchdog/iop_wdt.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * drivers/char/watchdog/iop_wdt.c
34 *
....@@ -5,19 +6,6 @@
56 * Copyright (C) 2005, Intel Corporation.
67 *
78 * Based on ixp4xx driver, Copyright 2004 (c) MontaVista, Software, Inc.
8
- *
9
- * This program is free software; you can redistribute it and/or modify it
10
- * under the terms and conditions of the GNU General Public License,
11
- * version 2, as published by the Free Software Foundation.
12
- *
13
- * This program is distributed in the hope it will be useful, but WITHOUT
14
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
15
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
16
- * more details.
17
- *
18
- * You should have received a copy of the GNU General Public License along with
19
- * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
20
- * Place - Suite 330, Boston, MA 02111-1307 USA.
219 *
2210 * Curt E Bruns <curt.e.bruns@intel.com>
2311 * Peter Milne <peter.milne@d-tacq.com>
....@@ -101,7 +89,7 @@
10189 clear_bit(WDT_OK_TO_CLOSE, &wdt_status);
10290 wdt_enable();
10391 set_bit(WDT_ENABLED, &wdt_status);
104
- return nonseekable_open(inode, file);
92
+ return stream_open(inode, file);
10593 }
10694
10795 static ssize_t iop_wdt_write(struct file *file, const char *data, size_t len,
....@@ -214,6 +202,7 @@
214202 .llseek = no_llseek,
215203 .write = iop_wdt_write,
216204 .unlocked_ioctl = iop_wdt_ioctl,
205
+ .compat_ioctl = compat_ptr_ioctl,
217206 .open = iop_wdt_open,
218207 .release = iop_wdt_release,
219208 };