hc
2024-05-14 bedbef8ad3e75a304af6361af235302bcc61d06b
kernel/drivers/watchdog/pnx833x_wdt.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * PNX833x Hardware Watchdog Driver
34 * Copyright 2008 NXP Semiconductors
....@@ -8,11 +9,6 @@
89 * A Hardware Watchdog Device for SGI IP22
910 *
1011 * (c) Copyright 2002 Guido Guenther <agx@sigxcpu.org>, All Rights Reserved.
11
- *
12
- * This program is free software; you can redistribute it and/or
13
- * modify it under the terms of the GNU General Public License
14
- * as published by the Free Software Foundation; either version
15
- * 2 of the License, or (at your option) any later version.
1612 *
1713 * based on softdog.c by Alan Cox <alan@redhat.com>
1814 */
....@@ -116,7 +112,7 @@
116112
117113 pr_info("Started watchdog timer\n");
118114
119
- return nonseekable_open(inode, file);
115
+ return stream_open(inode, file);
120116 }
121117
122118 static int pnx833x_wdt_release(struct inode *inode, struct file *file)
....@@ -219,6 +215,7 @@
219215 .llseek = no_llseek,
220216 .write = pnx833x_wdt_write,
221217 .unlocked_ioctl = pnx833x_wdt_ioctl,
218
+ .compat_ioctl = compat_ptr_ioctl,
222219 .open = pnx833x_wdt_open,
223220 .release = pnx833x_wdt_release,
224221 };