.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * drivers/char/watchdog/iop_wdt.c |
---|
3 | 4 | * |
---|
.. | .. |
---|
5 | 6 | * Copyright (C) 2005, Intel Corporation. |
---|
6 | 7 | * |
---|
7 | 8 | * Based on ixp4xx driver, Copyright 2004 (c) MontaVista, Software, Inc. |
---|
8 | | - * |
---|
9 | | - * This program is free software; you can redistribute it and/or modify it |
---|
10 | | - * under the terms and conditions of the GNU General Public License, |
---|
11 | | - * version 2, as published by the Free Software Foundation. |
---|
12 | | - * |
---|
13 | | - * This program is distributed in the hope it will be useful, but WITHOUT |
---|
14 | | - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
---|
15 | | - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
---|
16 | | - * more details. |
---|
17 | | - * |
---|
18 | | - * You should have received a copy of the GNU General Public License along with |
---|
19 | | - * this program; if not, write to the Free Software Foundation, Inc., 59 Temple |
---|
20 | | - * Place - Suite 330, Boston, MA 02111-1307 USA. |
---|
21 | 9 | * |
---|
22 | 10 | * Curt E Bruns <curt.e.bruns@intel.com> |
---|
23 | 11 | * Peter Milne <peter.milne@d-tacq.com> |
---|
.. | .. |
---|
101 | 89 | clear_bit(WDT_OK_TO_CLOSE, &wdt_status); |
---|
102 | 90 | wdt_enable(); |
---|
103 | 91 | set_bit(WDT_ENABLED, &wdt_status); |
---|
104 | | - return nonseekable_open(inode, file); |
---|
| 92 | + return stream_open(inode, file); |
---|
105 | 93 | } |
---|
106 | 94 | |
---|
107 | 95 | static ssize_t iop_wdt_write(struct file *file, const char *data, size_t len, |
---|
.. | .. |
---|
214 | 202 | .llseek = no_llseek, |
---|
215 | 203 | .write = iop_wdt_write, |
---|
216 | 204 | .unlocked_ioctl = iop_wdt_ioctl, |
---|
| 205 | + .compat_ioctl = compat_ptr_ioctl, |
---|
217 | 206 | .open = iop_wdt_open, |
---|
218 | 207 | .release = iop_wdt_release, |
---|
219 | 208 | }; |
---|