forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/media/pci/mantis/mantis_dvb.c
....@@ -1,20 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 Mantis PCI bridge driver
34 Copyright (C) Manu Abraham (abraham.manu@gmail.com)
45
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.
186 */
197
208 #include <linux/kernel.h>
....@@ -147,7 +135,7 @@
147135 int mantis_dvb_init(struct mantis_pci *mantis)
148136 {
149137 struct mantis_hwconfig *config = mantis->hwconfig;
150
- int result = -1;
138
+ int result;
151139
152140 dprintk(MANTIS_DEBUG, 1, "dvb_register_adapter");
153141
....@@ -217,7 +205,7 @@
217205 }
218206
219207 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);
221209 tasklet_disable(&mantis->tasklet);
222210 if (mantis->hwconfig) {
223211 result = config->frontend_init(mantis, mantis->fe);