.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * sma cpu5 watchdog driver |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (C) 2003 Heiko Ronsdorf <hero@ihg.uni-duisburg.de> |
---|
5 | | - * |
---|
6 | | - * This program is free software; you can redistribute it and/or modify |
---|
7 | | - * it under the terms of the GNU General Public License as published by |
---|
8 | | - * the Free Software Foundation; either version 2 of the License, or |
---|
9 | | - * (at your option) any later version. |
---|
10 | | - * |
---|
11 | | - * This program is distributed in the hope that it will be useful, |
---|
12 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
13 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
14 | | - * GNU General Public License for more details. |
---|
15 | | - * |
---|
16 | | - * You should have received a copy of the GNU General Public License |
---|
17 | | - * along with this program; if not, write to the Free Software |
---|
18 | | - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
---|
19 | | - * |
---|
20 | 6 | */ |
---|
21 | 7 | |
---|
22 | 8 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
---|
.. | .. |
---|
140 | 126 | { |
---|
141 | 127 | if (test_and_set_bit(0, &cpu5wdt_device.inuse)) |
---|
142 | 128 | return -EBUSY; |
---|
143 | | - return nonseekable_open(inode, file); |
---|
| 129 | + return stream_open(inode, file); |
---|
144 | 130 | } |
---|
145 | 131 | |
---|
146 | 132 | static int cpu5wdt_release(struct inode *inode, struct file *file) |
---|
.. | .. |
---|
201 | 187 | .owner = THIS_MODULE, |
---|
202 | 188 | .llseek = no_llseek, |
---|
203 | 189 | .unlocked_ioctl = cpu5wdt_ioctl, |
---|
| 190 | + .compat_ioctl = compat_ptr_ioctl, |
---|
204 | 191 | .open = cpu5wdt_open, |
---|
205 | 192 | .write = cpu5wdt_write, |
---|
206 | 193 | .release = cpu5wdt_release, |
---|