.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * SBC EPX C3 0.1 A Hardware Watchdog Device for the Winsystems EPX-C3 |
---|
3 | 4 | * single board computer |
---|
4 | 5 | * |
---|
5 | 6 | * (c) Copyright 2006 Calin A. Culianu <calin@ajvar.org>, All Rights |
---|
6 | 7 | * Reserved. |
---|
7 | | - * |
---|
8 | | - * This program is free software; you can redistribute it and/or |
---|
9 | | - * modify it under the terms of the GNU General Public License |
---|
10 | | - * as published by the Free Software Foundation; either version |
---|
11 | | - * 2 of the License, or (at your option) any later version. |
---|
12 | 8 | * |
---|
13 | 9 | * based on softdog.c by Alan Cox <alan@lxorguk.ukuu.org.uk> |
---|
14 | 10 | */ |
---|
.. | .. |
---|
78 | 74 | epx_c3_alive = 1; |
---|
79 | 75 | pr_info("Started watchdog timer\n"); |
---|
80 | 76 | |
---|
81 | | - return nonseekable_open(inode, file); |
---|
| 77 | + return stream_open(inode, file); |
---|
82 | 78 | } |
---|
83 | 79 | |
---|
84 | 80 | static int epx_c3_release(struct inode *inode, struct file *file) |
---|
.. | .. |
---|
160 | 156 | .llseek = no_llseek, |
---|
161 | 157 | .write = epx_c3_write, |
---|
162 | 158 | .unlocked_ioctl = epx_c3_ioctl, |
---|
| 159 | + .compat_ioctl = compat_ptr_ioctl, |
---|
163 | 160 | .open = epx_c3_open, |
---|
164 | 161 | .release = epx_c3_release, |
---|
165 | 162 | }; |
---|