.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * PNX833x Hardware Watchdog Driver |
---|
3 | 4 | * Copyright 2008 NXP Semiconductors |
---|
.. | .. |
---|
8 | 9 | * A Hardware Watchdog Device for SGI IP22 |
---|
9 | 10 | * |
---|
10 | 11 | * (c) Copyright 2002 Guido Guenther <agx@sigxcpu.org>, All Rights Reserved. |
---|
11 | | - * |
---|
12 | | - * This program is free software; you can redistribute it and/or |
---|
13 | | - * modify it under the terms of the GNU General Public License |
---|
14 | | - * as published by the Free Software Foundation; either version |
---|
15 | | - * 2 of the License, or (at your option) any later version. |
---|
16 | 12 | * |
---|
17 | 13 | * based on softdog.c by Alan Cox <alan@redhat.com> |
---|
18 | 14 | */ |
---|
.. | .. |
---|
116 | 112 | |
---|
117 | 113 | pr_info("Started watchdog timer\n"); |
---|
118 | 114 | |
---|
119 | | - return nonseekable_open(inode, file); |
---|
| 115 | + return stream_open(inode, file); |
---|
120 | 116 | } |
---|
121 | 117 | |
---|
122 | 118 | static int pnx833x_wdt_release(struct inode *inode, struct file *file) |
---|
.. | .. |
---|
219 | 215 | .llseek = no_llseek, |
---|
220 | 216 | .write = pnx833x_wdt_write, |
---|
221 | 217 | .unlocked_ioctl = pnx833x_wdt_ioctl, |
---|
| 218 | + .compat_ioctl = compat_ptr_ioctl, |
---|
222 | 219 | .open = pnx833x_wdt_open, |
---|
223 | 220 | .release = pnx833x_wdt_release, |
---|
224 | 221 | }; |
---|