.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * IndyDog 0.3 A Hardware Watchdog Device for SGI IP22 |
---|
3 | 4 | * |
---|
4 | 5 | * (c) Copyright 2002 Guido Guenther <agx@sigxcpu.org>, |
---|
5 | 6 | * All Rights Reserved. |
---|
6 | | - * |
---|
7 | | - * This program is free software; you can redistribute it and/or |
---|
8 | | - * modify it under the terms of the GNU General Public License |
---|
9 | | - * as published by the Free Software Foundation; either version |
---|
10 | | - * 2 of the License, or (at your option) any later version. |
---|
11 | 7 | * |
---|
12 | 8 | * based on softdog.c by Alan Cox <alan@lxorguk.ukuu.org.uk> |
---|
13 | 9 | */ |
---|
.. | .. |
---|
77 | 73 | |
---|
78 | 74 | pr_info("Started watchdog timer\n"); |
---|
79 | 75 | |
---|
80 | | - return nonseekable_open(inode, file); |
---|
| 76 | + return stream_open(inode, file); |
---|
81 | 77 | } |
---|
82 | 78 | |
---|
83 | 79 | static int indydog_release(struct inode *inode, struct file *file) |
---|
.. | .. |
---|
156 | 152 | .llseek = no_llseek, |
---|
157 | 153 | .write = indydog_write, |
---|
158 | 154 | .unlocked_ioctl = indydog_ioctl, |
---|
| 155 | + .compat_ioctl = compat_ptr_ioctl, |
---|
159 | 156 | .open = indydog_open, |
---|
160 | 157 | .release = indydog_release, |
---|
161 | 158 | }; |
---|