.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * nosy - Snoop mode driver for TI PCILynx 1394 controllers |
---|
3 | 4 | * 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. |
---|
18 | 5 | */ |
---|
19 | 6 | |
---|
20 | 7 | #include <linux/device.h> |
---|
.. | .. |
---|
65 | 52 | |
---|
66 | 53 | struct packet { |
---|
67 | 54 | unsigned int length; |
---|
68 | | - char data[0]; |
---|
| 55 | + char data[]; |
---|
69 | 56 | }; |
---|
70 | 57 | |
---|
71 | 58 | struct packet_buffer { |
---|
.. | .. |
---|
303 | 290 | |
---|
304 | 291 | file->private_data = client; |
---|
305 | 292 | |
---|
306 | | - return nonseekable_open(inode, file); |
---|
| 293 | + return stream_open(inode, file); |
---|
307 | 294 | fail: |
---|
308 | 295 | kfree(client); |
---|
309 | 296 | lynx_put(lynx); |
---|
.. | .. |
---|
569 | 556 | INIT_LIST_HEAD(&lynx->client_list); |
---|
570 | 557 | kref_init(&lynx->kref); |
---|
571 | 558 | |
---|
572 | | - lynx->registers = ioremap_nocache(pci_resource_start(dev, 0), |
---|
| 559 | + lynx->registers = ioremap(pci_resource_start(dev, 0), |
---|
573 | 560 | PCILYNX_MAX_REGISTER); |
---|
574 | 561 | if (lynx->registers == NULL) { |
---|
575 | 562 | dev_err(&dev->dev, "Failed to map registers\n"); |
---|