.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * MPC5200 General Purpose Timer device driver |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (c) 2009 Secret Lab Technologies Ltd. |
---|
5 | 6 | * Copyright (c) 2008 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix |
---|
6 | | - * |
---|
7 | | - * This program is free software; you can redistribute it and/or modify it |
---|
8 | | - * under the terms of the GNU General Public License as published by the |
---|
9 | | - * Free Software Foundation; either version 2 of the License, or (at your |
---|
10 | | - * option) any later version. |
---|
11 | 7 | * |
---|
12 | 8 | * This file is a driver for the the General Purpose Timer (gpt) devices |
---|
13 | 9 | * found on the MPC5200 SoC. Each timer has an IO pin which can be used |
---|
.. | .. |
---|
628 | 624 | } |
---|
629 | 625 | |
---|
630 | 626 | file->private_data = mpc52xx_gpt_wdt; |
---|
631 | | - return nonseekable_open(inode, file); |
---|
| 627 | + return stream_open(inode, file); |
---|
632 | 628 | } |
---|
633 | 629 | |
---|
634 | 630 | static int mpc52xx_wdt_release(struct inode *inode, struct file *file) |
---|
.. | .. |
---|
654 | 650 | .llseek = no_llseek, |
---|
655 | 651 | .write = mpc52xx_wdt_write, |
---|
656 | 652 | .unlocked_ioctl = mpc52xx_wdt_ioctl, |
---|
| 653 | + .compat_ioctl = compat_ptr_ioctl, |
---|
657 | 654 | .open = mpc52xx_wdt_open, |
---|
658 | 655 | .release = mpc52xx_wdt_release, |
---|
659 | 656 | }; |
---|