.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | Mantis PCI bridge driver |
---|
3 | 4 | Copyright (C) Manu Abraham (abraham.manu@gmail.com) |
---|
4 | 5 | |
---|
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 |
---|
17 | | - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
---|
18 | 6 | */ |
---|
19 | 7 | |
---|
20 | 8 | #include <linux/kernel.h> |
---|
.. | .. |
---|
147 | 135 | int mantis_dvb_init(struct mantis_pci *mantis) |
---|
148 | 136 | { |
---|
149 | 137 | struct mantis_hwconfig *config = mantis->hwconfig; |
---|
150 | | - int result = -1; |
---|
| 138 | + int result; |
---|
151 | 139 | |
---|
152 | 140 | dprintk(MANTIS_DEBUG, 1, "dvb_register_adapter"); |
---|
153 | 141 | |
---|
.. | .. |
---|
217 | 205 | } |
---|
218 | 206 | |
---|
219 | 207 | dvb_net_init(&mantis->dvb_adapter, &mantis->dvbnet, &mantis->demux.dmx); |
---|
220 | | - tasklet_init(&mantis->tasklet, mantis_dma_xfer, (unsigned long) mantis); |
---|
| 208 | + tasklet_setup(&mantis->tasklet, mantis_dma_xfer); |
---|
221 | 209 | tasklet_disable(&mantis->tasklet); |
---|
222 | 210 | if (mantis->hwconfig) { |
---|
223 | 211 | result = config->frontend_init(mantis, mantis->fe); |
---|