hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/firewire/nosy.c
....@@ -1,20 +1,7 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * nosy - Snoop mode driver for TI PCILynx 1394 controllers
34 * Copyright (C) 2002-2007 Kristian Høgsberg
4
- *
5
- * This program is free software; you can redistribute it and/or modify
6
- * it under the terms of the GNU General Public License as published by
7
- * the Free Software Foundation; either version 2 of the License, or
8
- * (at your option) any later version.
9
- *
10
- * This program is distributed in the hope that it will be useful,
11
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
- * GNU General Public License for more details.
14
- *
15
- * You should have received a copy of the GNU General Public License
16
- * along with this program; if not, write to the Free Software Foundation,
17
- * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
185 */
196
207 #include <linux/device.h>
....@@ -65,7 +52,7 @@
6552
6653 struct packet {
6754 unsigned int length;
68
- char data[0];
55
+ char data[];
6956 };
7057
7158 struct packet_buffer {
....@@ -303,7 +290,7 @@
303290
304291 file->private_data = client;
305292
306
- return nonseekable_open(inode, file);
293
+ return stream_open(inode, file);
307294 fail:
308295 kfree(client);
309296 lynx_put(lynx);
....@@ -569,7 +556,7 @@
569556 INIT_LIST_HEAD(&lynx->client_list);
570557 kref_init(&lynx->kref);
571558
572
- lynx->registers = ioremap_nocache(pci_resource_start(dev, 0),
559
+ lynx->registers = ioremap(pci_resource_start(dev, 0),
573560 PCILYNX_MAX_REGISTER);
574561 if (lynx->registers == NULL) {
575562 dev_err(&dev->dev, "Failed to map registers\n");