.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0+ |
---|
1 | 2 | /* |
---|
2 | 3 | * Acquire Single Board Computer Watchdog Timer driver |
---|
3 | 4 | * |
---|
.. | .. |
---|
5 | 6 | * |
---|
6 | 7 | * (c) Copyright 1996 Alan Cox <alan@lxorguk.ukuu.org.uk>, |
---|
7 | 8 | * All Rights Reserved. |
---|
8 | | - * |
---|
9 | | - * This program is free software; you can redistribute it and/or |
---|
10 | | - * modify it under the terms of the GNU General Public License |
---|
11 | | - * as published by the Free Software Foundation; either version |
---|
12 | | - * 2 of the License, or (at your option) any later version. |
---|
13 | 9 | * |
---|
14 | 10 | * Neither Alan Cox nor CymruNet Ltd. admit liability nor provide |
---|
15 | 11 | * warranty for any of this software. This material is provided |
---|
.. | .. |
---|
200 | 196 | |
---|
201 | 197 | /* Activate */ |
---|
202 | 198 | acq_keepalive(); |
---|
203 | | - return nonseekable_open(inode, file); |
---|
| 199 | + return stream_open(inode, file); |
---|
204 | 200 | } |
---|
205 | 201 | |
---|
206 | 202 | static int acq_close(struct inode *inode, struct file *file) |
---|
.. | .. |
---|
225 | 221 | .llseek = no_llseek, |
---|
226 | 222 | .write = acq_write, |
---|
227 | 223 | .unlocked_ioctl = acq_ioctl, |
---|
| 224 | + .compat_ioctl = compat_ptr_ioctl, |
---|
228 | 225 | .open = acq_open, |
---|
229 | 226 | .release = acq_close, |
---|
230 | 227 | }; |
---|