hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/drivers/media/pci/bt8xx/bt878.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * bt878.c: part of the driver for the Pinnacle PCTV Sat DVB PCI card
34 *
....@@ -7,32 +8,14 @@
78 * Copyright (C) 1996,97,98 Ralph Metzler (rjkm@metzlerbros.de)
89 * & Marcus Metzler (mocm@metzlerbros.de)
910 * (c) 1999,2000 Gerd Knorr <kraxel@goldbach.in-berlin.de>
10
- *
11
- * This program is free software; you can redistribute it and/or
12
- * modify it under the terms of the GNU General Public License
13
- * as published by the Free Software Foundation; either version 2
14
- * of the License, or (at your option) any later version.
15
- *
16
-
17
- * This program is distributed in the hope that it will be useful,
18
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
19
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20
- * GNU General Public License for more details.
21
- *
22
-
23
- * You should have received a copy of the GNU General Public License
24
- * along with this program; if not, write to the Free Software
25
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
26
- * Or, point your browser to http://www.gnu.org/copyleft/gpl.html
27
- *
2811 */
2912
3013 #include <linux/module.h>
3114 #include <linux/kernel.h>
3215 #include <linux/pci.h>
16
+#include <linux/pgtable.h>
3317 #include <asm/io.h>
3418 #include <linux/ioport.h>
35
-#include <asm/pgtable.h>
3619 #include <asm/page.h>
3720 #include <linux/types.h>
3821 #include <linux/interrupt.h>
....@@ -317,7 +300,8 @@
317300 }
318301 if (astat & BT878_ARISCI) {
319302 bt->finished_block = (stat & BT878_ARISCS) >> 28;
320
- tasklet_schedule(&bt->tasklet);
303
+ if (bt->tasklet.callback)
304
+ tasklet_schedule(&bt->tasklet);
321305 break;
322306 }
323307 count++;