hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/char/pcmcia/scr24x_cs.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * SCR24x PCMCIA Smart Card Reader Driver
34 *
....@@ -5,20 +6,6 @@
56 * Copyright (C) 2016 Lubomir Rintel
67 *
78 * Derived from "scr24x_v4.2.6_Release.tar.gz" driver by TL Sudheendran.
8
- *
9
- * This program is free software; you can redistribute it and/or modify
10
- * it under the terms of the GNU General Public License as published by
11
- * the Free Software Foundation; either version 2, or (at your option)
12
- * any later version.
13
- *
14
- * This program is distributed in the hope that it will be useful,
15
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
- * GNU General Public License for more details.
18
- *
19
- * You should have received a copy of the GNU General Public License
20
- * along with this program; see the file COPYING. If not, write to
21
- * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
229 */
2310
2411 #include <linux/device.h>
....@@ -92,7 +79,7 @@
9279 kref_get(&dev->refcnt);
9380 filp->private_data = dev;
9481
95
- return nonseekable_open(inode, filp);
82
+ return stream_open(inode, filp);
9683 }
9784
9885 static int scr24x_release(struct inode *inode, struct file *filp)