| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * SCR24x PCMCIA Smart Card Reader Driver |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 5 | 6 | * Copyright (C) 2016 Lubomir Rintel |
|---|
| 6 | 7 | * |
|---|
| 7 | 8 | * 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. |
|---|
| 22 | 9 | */ |
|---|
| 23 | 10 | |
|---|
| 24 | 11 | #include <linux/device.h> |
|---|
| .. | .. |
|---|
| 92 | 79 | kref_get(&dev->refcnt); |
|---|
| 93 | 80 | filp->private_data = dev; |
|---|
| 94 | 81 | |
|---|
| 95 | | - return nonseekable_open(inode, filp); |
|---|
| 82 | + return stream_open(inode, filp); |
|---|
| 96 | 83 | } |
|---|
| 97 | 84 | |
|---|
| 98 | 85 | static int scr24x_release(struct inode *inode, struct file *filp) |
|---|