.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0+ |
---|
1 | 2 | /* |
---|
2 | 3 | * Eurotech CPU-1220/1410/1420 on board WDT driver |
---|
3 | 4 | * |
---|
.. | .. |
---|
10 | 11 | * |
---|
11 | 12 | * (c) Copyright 1996-1997 Alan Cox <alan@lxorguk.ukuu.org.uk>, |
---|
12 | 13 | * All Rights Reserved. |
---|
13 | | - * |
---|
14 | | - * This program is free software; you can redistribute it and/or |
---|
15 | | - * modify it under the terms of the GNU General Public License |
---|
16 | | - * as published by the Free Software Foundation; either version |
---|
17 | | - * 2 of the License, or (at your option) any later version. |
---|
18 | 14 | * |
---|
19 | 15 | * Neither Alan Cox nor CymruNet Ltd. admit liability nor provide |
---|
20 | 16 | * warranty for any of this software. This material is provided |
---|
.. | .. |
---|
290 | 286 | eurwdt_timeout = time; |
---|
291 | 287 | eurwdt_set_timeout(time); |
---|
292 | 288 | spin_unlock(&eurwdt_lock); |
---|
293 | | - /* fall through */ |
---|
| 289 | + fallthrough; |
---|
294 | 290 | |
---|
295 | 291 | case WDIOC_GETTIMEOUT: |
---|
296 | 292 | return put_user(eurwdt_timeout, p); |
---|
.. | .. |
---|
316 | 312 | eurwdt_timeout = WDT_TIMEOUT; /* initial timeout */ |
---|
317 | 313 | /* Activate the WDT */ |
---|
318 | 314 | eurwdt_activate_timer(); |
---|
319 | | - return nonseekable_open(inode, file); |
---|
| 315 | + return stream_open(inode, file); |
---|
320 | 316 | } |
---|
321 | 317 | |
---|
322 | 318 | /** |
---|
.. | .. |
---|
375 | 371 | .llseek = no_llseek, |
---|
376 | 372 | .write = eurwdt_write, |
---|
377 | 373 | .unlocked_ioctl = eurwdt_ioctl, |
---|
| 374 | + .compat_ioctl = compat_ptr_ioctl, |
---|
378 | 375 | .open = eurwdt_open, |
---|
379 | 376 | .release = eurwdt_release, |
---|
380 | 377 | }; |
---|