| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * bt878.c: part of the driver for the Pinnacle PCTV Sat DVB PCI card |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 7 | 8 | * Copyright (C) 1996,97,98 Ralph Metzler (rjkm@metzlerbros.de) |
|---|
| 8 | 9 | * & Marcus Metzler (mocm@metzlerbros.de) |
|---|
| 9 | 10 | * (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 | | - * |
|---|
| 28 | 11 | */ |
|---|
| 29 | 12 | |
|---|
| 30 | 13 | #include <linux/module.h> |
|---|
| 31 | 14 | #include <linux/kernel.h> |
|---|
| 32 | 15 | #include <linux/pci.h> |
|---|
| 16 | +#include <linux/pgtable.h> |
|---|
| 33 | 17 | #include <asm/io.h> |
|---|
| 34 | 18 | #include <linux/ioport.h> |
|---|
| 35 | | -#include <asm/pgtable.h> |
|---|
| 36 | 19 | #include <asm/page.h> |
|---|
| 37 | 20 | #include <linux/types.h> |
|---|
| 38 | 21 | #include <linux/interrupt.h> |
|---|
| .. | .. |
|---|
| 317 | 300 | } |
|---|
| 318 | 301 | if (astat & BT878_ARISCI) { |
|---|
| 319 | 302 | bt->finished_block = (stat & BT878_ARISCS) >> 28; |
|---|
| 320 | | - tasklet_schedule(&bt->tasklet); |
|---|
| 303 | + if (bt->tasklet.callback) |
|---|
| 304 | + tasklet_schedule(&bt->tasklet); |
|---|
| 321 | 305 | break; |
|---|
| 322 | 306 | } |
|---|
| 323 | 307 | count++; |
|---|