.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * RDC321x watchdog driver |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (C) 2007-2010 Florian Fainelli <florian@openwrt.org> |
---|
5 | 6 | * |
---|
6 | 7 | * 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 | | - * |
---|
22 | 8 | */ |
---|
23 | 9 | |
---|
24 | 10 | #include <linux/module.h> |
---|
.. | .. |
---|
142 | 128 | if (test_and_set_bit(0, &rdc321x_wdt_device.inuse)) |
---|
143 | 129 | return -EBUSY; |
---|
144 | 130 | |
---|
145 | | - return nonseekable_open(inode, file); |
---|
| 131 | + return stream_open(inode, file); |
---|
146 | 132 | } |
---|
147 | 133 | |
---|
148 | 134 | static int rdc321x_wdt_release(struct inode *inode, struct file *file) |
---|
.. | .. |
---|
213 | 199 | .owner = THIS_MODULE, |
---|
214 | 200 | .llseek = no_llseek, |
---|
215 | 201 | .unlocked_ioctl = rdc321x_wdt_ioctl, |
---|
| 202 | + .compat_ioctl = compat_ptr_ioctl, |
---|
216 | 203 | .open = rdc321x_wdt_open, |
---|
217 | 204 | .write = rdc321x_wdt_write, |
---|
218 | 205 | .release = rdc321x_wdt_release, |
---|