.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0 |
---|
1 | 2 | /* |
---|
2 | 3 | * mv64x60_wdt.c - MV64X60 (Marvell Discovery) watchdog userspace interface |
---|
3 | 4 | * |
---|
.. | .. |
---|
9 | 10 | * |
---|
10 | 11 | * Derived from mpc8xx_wdt.c, with the following copyright. |
---|
11 | 12 | * |
---|
12 | | - * 2002 (c) Florian Schirmer <jolt@tuxbox.org> This file is licensed under |
---|
13 | | - * the terms of the GNU General Public License version 2. This program |
---|
14 | | - * is licensed "as is" without any warranty of any kind, whether express |
---|
15 | | - * or implied. |
---|
| 13 | + * 2002 (c) Florian Schirmer <jolt@tuxbox.org> |
---|
16 | 14 | */ |
---|
17 | 15 | |
---|
18 | 16 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
---|
.. | .. |
---|
133 | 131 | |
---|
134 | 132 | mv64x60_wdt_handler_enable(); |
---|
135 | 133 | |
---|
136 | | - return nonseekable_open(inode, file); |
---|
| 134 | + return stream_open(inode, file); |
---|
137 | 135 | } |
---|
138 | 136 | |
---|
139 | 137 | static int mv64x60_wdt_release(struct inode *inode, struct file *file) |
---|
.. | .. |
---|
224 | 222 | if (get_user(timeout, (int __user *)argp)) |
---|
225 | 223 | return -EFAULT; |
---|
226 | 224 | mv64x60_wdt_set_timeout(timeout); |
---|
227 | | - /* Fall through */ |
---|
| 225 | + fallthrough; |
---|
228 | 226 | |
---|
229 | 227 | case WDIOC_GETTIMEOUT: |
---|
230 | 228 | if (put_user(mv64x60_wdt_timeout, (int __user *)argp)) |
---|
.. | .. |
---|
243 | 241 | .llseek = no_llseek, |
---|
244 | 242 | .write = mv64x60_wdt_write, |
---|
245 | 243 | .unlocked_ioctl = mv64x60_wdt_ioctl, |
---|
| 244 | + .compat_ioctl = compat_ptr_ioctl, |
---|
246 | 245 | .open = mv64x60_wdt_open, |
---|
247 | 246 | .release = mv64x60_wdt_release, |
---|
248 | 247 | }; |
---|