hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/arch/powerpc/platforms/52xx/mpc52xx_gpt.c
....@@ -1,13 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * MPC5200 General Purpose Timer device driver
34 *
45 * Copyright (c) 2009 Secret Lab Technologies Ltd.
56 * 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.
117 *
128 * This file is a driver for the the General Purpose Timer (gpt) devices
139 * found on the MPC5200 SoC. Each timer has an IO pin which can be used
....@@ -628,7 +624,7 @@
628624 }
629625
630626 file->private_data = mpc52xx_gpt_wdt;
631
- return nonseekable_open(inode, file);
627
+ return stream_open(inode, file);
632628 }
633629
634630 static int mpc52xx_wdt_release(struct inode *inode, struct file *file)
....@@ -654,6 +650,7 @@
654650 .llseek = no_llseek,
655651 .write = mpc52xx_wdt_write,
656652 .unlocked_ioctl = mpc52xx_wdt_ioctl,
653
+ .compat_ioctl = compat_ptr_ioctl,
657654 .open = mpc52xx_wdt_open,
658655 .release = mpc52xx_wdt_release,
659656 };