diff options
author | Manu Abraham <abraham.manu@gmail.com> | 2009-12-15 04:17:54 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-01-17 08:55:43 -0500 |
commit | 0bdc799b8b82cf61c86604291c53998febc96403 (patch) | |
tree | 5747b7092c5366cc557445a68ae7c7fcf788234a /drivers/media | |
parent | 5dd83a35bea908ebb8243d67d8c251eed2bb5cc8 (diff) |
V4L/DVB (13802): [Mantis/Hopper] Fix all build related warnings
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/dvb/mantis/hopper_cards.c | 4 | ||||
-rw-r--r-- | drivers/media/dvb/mantis/hopper_vp3028.c | 1 | ||||
-rw-r--r-- | drivers/media/dvb/mantis/mantis_ca.c | 1 | ||||
-rw-r--r-- | drivers/media/dvb/mantis/mantis_cards.c | 13 | ||||
-rw-r--r-- | drivers/media/dvb/mantis/mantis_dvb.c | 1 | ||||
-rw-r--r-- | drivers/media/dvb/mantis/mantis_evm.c | 1 | ||||
-rw-r--r-- | drivers/media/dvb/mantis/mantis_hif.c | 17 | ||||
-rw-r--r-- | drivers/media/dvb/mantis/mantis_ioc.c | 1 | ||||
-rw-r--r-- | drivers/media/dvb/mantis/mantis_pcmcia.c | 1 | ||||
-rw-r--r-- | drivers/media/dvb/mantis/mantis_uart.c | 7 | ||||
-rw-r--r-- | drivers/media/dvb/mantis/mantis_vp1033.c | 1 | ||||
-rw-r--r-- | drivers/media/dvb/mantis/mantis_vp1034.c | 1 | ||||
-rw-r--r-- | drivers/media/dvb/mantis/mantis_vp1041.c | 1 | ||||
-rw-r--r-- | drivers/media/dvb/mantis/mantis_vp2033.c | 1 | ||||
-rw-r--r-- | drivers/media/dvb/mantis/mantis_vp2040.c | 1 | ||||
-rw-r--r-- | drivers/media/dvb/mantis/mantis_vp3030.c | 1 |
16 files changed, 3 insertions, 50 deletions
diff --git a/drivers/media/dvb/mantis/hopper_cards.c b/drivers/media/dvb/mantis/hopper_cards.c index 01a9ff07d770..6d5d101f0ab0 100644 --- a/drivers/media/dvb/mantis/hopper_cards.c +++ b/drivers/media/dvb/mantis/hopper_cards.c | |||
@@ -190,10 +190,6 @@ static int __devinit hopper_pci_probe(struct pci_dev *pdev, const struct pci_dev | |||
190 | 190 | ||
191 | return err; | 191 | return err; |
192 | 192 | ||
193 | fail5: | ||
194 | dprintk(MANTIS_ERROR, 1, "ERROR: Mantis DVB exit! <%d>", err); | ||
195 | mantis_dvb_exit(mantis); | ||
196 | |||
197 | fail4: | 193 | fail4: |
198 | dprintk(MANTIS_ERROR, 1, "ERROR: Mantis DMA exit! <%d>", err); | 194 | dprintk(MANTIS_ERROR, 1, "ERROR: Mantis DMA exit! <%d>", err); |
199 | mantis_dma_exit(mantis); | 195 | mantis_dma_exit(mantis); |
diff --git a/drivers/media/dvb/mantis/hopper_vp3028.c b/drivers/media/dvb/mantis/hopper_vp3028.c index 16b39d3b9ace..76cad8763382 100644 --- a/drivers/media/dvb/mantis/hopper_vp3028.c +++ b/drivers/media/dvb/mantis/hopper_vp3028.c | |||
@@ -18,7 +18,6 @@ | |||
18 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | 18 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
19 | */ | 19 | */ |
20 | 20 | ||
21 | #include <asm/irq.h> | ||
22 | #include <linux/signal.h> | 21 | #include <linux/signal.h> |
23 | #include <linux/sched.h> | 22 | #include <linux/sched.h> |
24 | #include <linux/interrupt.h> | 23 | #include <linux/interrupt.h> |
diff --git a/drivers/media/dvb/mantis/mantis_ca.c b/drivers/media/dvb/mantis/mantis_ca.c index 4151cba35e72..88899ac96d63 100644 --- a/drivers/media/dvb/mantis/mantis_ca.c +++ b/drivers/media/dvb/mantis/mantis_ca.c | |||
@@ -18,7 +18,6 @@ | |||
18 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | 18 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
19 | */ | 19 | */ |
20 | 20 | ||
21 | #include <asm/irq.h> | ||
22 | #include <linux/signal.h> | 21 | #include <linux/signal.h> |
23 | #include <linux/sched.h> | 22 | #include <linux/sched.h> |
24 | #include <linux/interrupt.h> | 23 | #include <linux/interrupt.h> |
diff --git a/drivers/media/dvb/mantis/mantis_cards.c b/drivers/media/dvb/mantis/mantis_cards.c index 638177ce72a2..0b52f996f8e1 100644 --- a/drivers/media/dvb/mantis/mantis_cards.c +++ b/drivers/media/dvb/mantis/mantis_cards.c | |||
@@ -197,19 +197,6 @@ static int __devinit mantis_pci_probe(struct pci_dev *pdev, const struct pci_dev | |||
197 | devs++; | 197 | devs++; |
198 | 198 | ||
199 | return err; | 199 | return err; |
200 | |||
201 | fail7: | ||
202 | dprintk(MANTIS_ERROR, 1, "ERROR: Mantis UART exit! <%d>", err); | ||
203 | mantis_uart_exit(mantis); | ||
204 | |||
205 | fail6: | ||
206 | dprintk(MANTIS_ERROR, 1, "ERROR: Mantis CA exit! <%d>", err); | ||
207 | mantis_ca_exit(mantis); | ||
208 | |||
209 | fail5: | ||
210 | dprintk(MANTIS_ERROR, 1, "ERROR: Mantis DVB exit! <%d>", err); | ||
211 | mantis_dvb_exit(mantis); | ||
212 | |||
213 | fail4: | 200 | fail4: |
214 | dprintk(MANTIS_ERROR, 1, "ERROR: Mantis DMA exit! <%d>", err); | 201 | dprintk(MANTIS_ERROR, 1, "ERROR: Mantis DMA exit! <%d>", err); |
215 | mantis_dma_exit(mantis); | 202 | mantis_dma_exit(mantis); |
diff --git a/drivers/media/dvb/mantis/mantis_dvb.c b/drivers/media/dvb/mantis/mantis_dvb.c index 9d9c5582ada8..1e08e3107639 100644 --- a/drivers/media/dvb/mantis/mantis_dvb.c +++ b/drivers/media/dvb/mantis/mantis_dvb.c | |||
@@ -20,7 +20,6 @@ | |||
20 | #include <linux/kernel.h> | 20 | #include <linux/kernel.h> |
21 | #include <linux/bitops.h> | 21 | #include <linux/bitops.h> |
22 | 22 | ||
23 | #include <asm/irq.h> | ||
24 | #include <linux/signal.h> | 23 | #include <linux/signal.h> |
25 | #include <linux/sched.h> | 24 | #include <linux/sched.h> |
26 | #include <linux/interrupt.h> | 25 | #include <linux/interrupt.h> |
diff --git a/drivers/media/dvb/mantis/mantis_evm.c b/drivers/media/dvb/mantis/mantis_evm.c index 2005b2489b74..9304b0edd89e 100644 --- a/drivers/media/dvb/mantis/mantis_evm.c +++ b/drivers/media/dvb/mantis/mantis_evm.c | |||
@@ -20,7 +20,6 @@ | |||
20 | 20 | ||
21 | #include <linux/kernel.h> | 21 | #include <linux/kernel.h> |
22 | 22 | ||
23 | #include <asm/irq.h> | ||
24 | #include <linux/signal.h> | 23 | #include <linux/signal.h> |
25 | #include <linux/sched.h> | 24 | #include <linux/sched.h> |
26 | #include <linux/interrupt.h> | 25 | #include <linux/interrupt.h> |
diff --git a/drivers/media/dvb/mantis/mantis_hif.c b/drivers/media/dvb/mantis/mantis_hif.c index bb05427fdeb6..73e5ca0c6c14 100644 --- a/drivers/media/dvb/mantis/mantis_hif.c +++ b/drivers/media/dvb/mantis/mantis_hif.c | |||
@@ -22,7 +22,6 @@ | |||
22 | #include <linux/signal.h> | 22 | #include <linux/signal.h> |
23 | #include <linux/sched.h> | 23 | #include <linux/sched.h> |
24 | 24 | ||
25 | #include <asm/irq.h> | ||
26 | #include <linux/signal.h> | 25 | #include <linux/signal.h> |
27 | #include <linux/sched.h> | 26 | #include <linux/sched.h> |
28 | #include <linux/interrupt.h> | 27 | #include <linux/interrupt.h> |
@@ -40,22 +39,6 @@ | |||
40 | 39 | ||
41 | #include "mantis_reg.h" | 40 | #include "mantis_reg.h" |
42 | 41 | ||
43 | static int mantis_hif_data_available(struct mantis_ca *ca) | ||
44 | { | ||
45 | struct mantis_pci *mantis = ca->ca_priv; | ||
46 | int rc = 0; | ||
47 | |||
48 | if (wait_event_interruptible_timeout(ca->hif_data_wq, | ||
49 | ca->sbuf_status & MANTIS_SBUF_DATA_AVAIL, | ||
50 | msecs_to_jiffies(500)) == -ERESTARTSYS) { | ||
51 | |||
52 | dprintk(MANTIS_ERROR, 1, "Adapter(%d) Slot(0): HIF Read wait event timeout !", mantis->num); | ||
53 | rc = -EREMOTEIO; | ||
54 | } | ||
55 | ca->sbuf_status &= ~MANTIS_SBUF_DATA_AVAIL; | ||
56 | udelay(2); | ||
57 | return rc; | ||
58 | } | ||
59 | 42 | ||
60 | static int mantis_hif_sbuf_opdone_wait(struct mantis_ca *ca) | 43 | static int mantis_hif_sbuf_opdone_wait(struct mantis_ca *ca) |
61 | { | 44 | { |
diff --git a/drivers/media/dvb/mantis/mantis_ioc.c b/drivers/media/dvb/mantis/mantis_ioc.c index 448e2c3e3445..dd6636999add 100644 --- a/drivers/media/dvb/mantis/mantis_ioc.c +++ b/drivers/media/dvb/mantis/mantis_ioc.c | |||
@@ -21,7 +21,6 @@ | |||
21 | #include <linux/kernel.h> | 21 | #include <linux/kernel.h> |
22 | #include <linux/i2c.h> | 22 | #include <linux/i2c.h> |
23 | 23 | ||
24 | #include <asm/irq.h> | ||
25 | #include <linux/signal.h> | 24 | #include <linux/signal.h> |
26 | #include <linux/sched.h> | 25 | #include <linux/sched.h> |
27 | #include <linux/interrupt.h> | 26 | #include <linux/interrupt.h> |
diff --git a/drivers/media/dvb/mantis/mantis_pcmcia.c b/drivers/media/dvb/mantis/mantis_pcmcia.c index 90ca356985eb..d6bca3e58597 100644 --- a/drivers/media/dvb/mantis/mantis_pcmcia.c +++ b/drivers/media/dvb/mantis/mantis_pcmcia.c | |||
@@ -20,7 +20,6 @@ | |||
20 | 20 | ||
21 | #include <linux/kernel.h> | 21 | #include <linux/kernel.h> |
22 | 22 | ||
23 | #include <asm/irq.h> | ||
24 | #include <linux/signal.h> | 23 | #include <linux/signal.h> |
25 | #include <linux/sched.h> | 24 | #include <linux/sched.h> |
26 | #include <linux/interrupt.h> | 25 | #include <linux/interrupt.h> |
diff --git a/drivers/media/dvb/mantis/mantis_uart.c b/drivers/media/dvb/mantis/mantis_uart.c index fb423b0a58fd..03b47cf15f8d 100644 --- a/drivers/media/dvb/mantis/mantis_uart.c +++ b/drivers/media/dvb/mantis/mantis_uart.c | |||
@@ -26,19 +26,18 @@ struct mantis_uart_params { | |||
26 | int mantis_uart_read(struct mantis_pci *mantis, u8 *data) | 26 | int mantis_uart_read(struct mantis_pci *mantis, u8 *data) |
27 | { | 27 | { |
28 | struct mantis_hwconfig *config = mantis->hwconfig; | 28 | struct mantis_hwconfig *config = mantis->hwconfig; |
29 | u32 stat, i; | 29 | u32 stat = 0, i; |
30 | unsigned long flags; | ||
31 | 30 | ||
32 | /* get data */ | 31 | /* get data */ |
33 | for (i = 0; i < (config->bytes + 1); i++) { | 32 | for (i = 0; i < (config->bytes + 1); i++) { |
34 | 33 | ||
34 | stat = mmread(MANTIS_UART_STAT); | ||
35 | |||
35 | if (stat & MANTIS_UART_RXFIFO_FULL) { | 36 | if (stat & MANTIS_UART_RXFIFO_FULL) { |
36 | dprintk(MANTIS_ERROR, 1, "RX Fifo FULL"); | 37 | dprintk(MANTIS_ERROR, 1, "RX Fifo FULL"); |
37 | } | 38 | } |
38 | data[i] = mmread(MANTIS_UART_RXD) & 0x3f; | 39 | data[i] = mmread(MANTIS_UART_RXD) & 0x3f; |
39 | 40 | ||
40 | stat = mmread(MANTIS_UART_STAT); | ||
41 | |||
42 | dprintk(MANTIS_DEBUG, 1, "Reading ... <%02x>", data[i] & 0x3f); | 41 | dprintk(MANTIS_DEBUG, 1, "Reading ... <%02x>", data[i] & 0x3f); |
43 | 42 | ||
44 | if (data[i] & (1 << 7)) { | 43 | if (data[i] & (1 << 7)) { |
diff --git a/drivers/media/dvb/mantis/mantis_vp1033.c b/drivers/media/dvb/mantis/mantis_vp1033.c index 0bea6e89f551..c9760b00d0ab 100644 --- a/drivers/media/dvb/mantis/mantis_vp1033.c +++ b/drivers/media/dvb/mantis/mantis_vp1033.c | |||
@@ -18,7 +18,6 @@ | |||
18 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | 18 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
19 | */ | 19 | */ |
20 | 20 | ||
21 | #include <asm/irq.h> | ||
22 | #include <linux/signal.h> | 21 | #include <linux/signal.h> |
23 | #include <linux/sched.h> | 22 | #include <linux/sched.h> |
24 | #include <linux/interrupt.h> | 23 | #include <linux/interrupt.h> |
diff --git a/drivers/media/dvb/mantis/mantis_vp1034.c b/drivers/media/dvb/mantis/mantis_vp1034.c index 98a4ec89f048..7ddd149b0fea 100644 --- a/drivers/media/dvb/mantis/mantis_vp1034.c +++ b/drivers/media/dvb/mantis/mantis_vp1034.c | |||
@@ -18,7 +18,6 @@ | |||
18 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | 18 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
19 | */ | 19 | */ |
20 | 20 | ||
21 | #include <asm/irq.h> | ||
22 | #include <linux/signal.h> | 21 | #include <linux/signal.h> |
23 | #include <linux/sched.h> | 22 | #include <linux/sched.h> |
24 | #include <linux/interrupt.h> | 23 | #include <linux/interrupt.h> |
diff --git a/drivers/media/dvb/mantis/mantis_vp1041.c b/drivers/media/dvb/mantis/mantis_vp1041.c index 1181fad3b27b..368fc815a61d 100644 --- a/drivers/media/dvb/mantis/mantis_vp1041.c +++ b/drivers/media/dvb/mantis/mantis_vp1041.c | |||
@@ -18,7 +18,6 @@ | |||
18 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | 18 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
19 | */ | 19 | */ |
20 | 20 | ||
21 | #include <asm/irq.h> | ||
22 | #include <linux/signal.h> | 21 | #include <linux/signal.h> |
23 | #include <linux/sched.h> | 22 | #include <linux/sched.h> |
24 | #include <linux/interrupt.h> | 23 | #include <linux/interrupt.h> |
diff --git a/drivers/media/dvb/mantis/mantis_vp2033.c b/drivers/media/dvb/mantis/mantis_vp2033.c index cef108c5ffc7..45f71749bb98 100644 --- a/drivers/media/dvb/mantis/mantis_vp2033.c +++ b/drivers/media/dvb/mantis/mantis_vp2033.c | |||
@@ -18,7 +18,6 @@ | |||
18 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | 18 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
19 | */ | 19 | */ |
20 | 20 | ||
21 | #include <asm/irq.h> | ||
22 | #include <linux/signal.h> | 21 | #include <linux/signal.h> |
23 | #include <linux/sched.h> | 22 | #include <linux/sched.h> |
24 | #include <linux/interrupt.h> | 23 | #include <linux/interrupt.h> |
diff --git a/drivers/media/dvb/mantis/mantis_vp2040.c b/drivers/media/dvb/mantis/mantis_vp2040.c index e2019884ac3a..8471bff672f3 100644 --- a/drivers/media/dvb/mantis/mantis_vp2040.c +++ b/drivers/media/dvb/mantis/mantis_vp2040.c | |||
@@ -18,7 +18,6 @@ | |||
18 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | 18 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
19 | */ | 19 | */ |
20 | 20 | ||
21 | #include <asm/irq.h> | ||
22 | #include <linux/signal.h> | 21 | #include <linux/signal.h> |
23 | #include <linux/sched.h> | 22 | #include <linux/sched.h> |
24 | #include <linux/interrupt.h> | 23 | #include <linux/interrupt.h> |
diff --git a/drivers/media/dvb/mantis/mantis_vp3030.c b/drivers/media/dvb/mantis/mantis_vp3030.c index a44fac3aabc6..1895e956b16d 100644 --- a/drivers/media/dvb/mantis/mantis_vp3030.c +++ b/drivers/media/dvb/mantis/mantis_vp3030.c | |||
@@ -18,7 +18,6 @@ | |||
18 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | 18 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
19 | */ | 19 | */ |
20 | 20 | ||
21 | #include <asm/irq.h> | ||
22 | #include <linux/signal.h> | 21 | #include <linux/signal.h> |
23 | #include <linux/sched.h> | 22 | #include <linux/sched.h> |
24 | #include <linux/interrupt.h> | 23 | #include <linux/interrupt.h> |