hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/char/tb0219.c
....@@ -1,21 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Driver for TANBAC TB0219 base board.
34 *
45 * Copyright (C) 2005 Yoichi Yuasa <yuasa@linux-mips.org>
5
- *
6
- * This program is free software; you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License as published by
8
- * the Free Software Foundation; either version 2 of the License, or
9
- * (at your option) any later version.
10
- *
11
- * This program is distributed in the hope that it will be useful,
12
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- * GNU General Public License for more details.
15
- *
16
- * You should have received a copy of the GNU General Public License
17
- * along with this program; if not, write to the Free Software
18
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
196 */
207 #include <linux/platform_device.h>
218 #include <linux/fs.h>
....@@ -243,7 +230,7 @@
243230 case 16 ... 23:
244231 case 32 ... 39:
245232 case 48 ... 55:
246
- return nonseekable_open(inode, file);
233
+ return stream_open(inode, file);
247234 default:
248235 break;
249236 }