diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2009-03-13 12:24:19 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-03-30 11:43:20 -0400 |
commit | afd96668d8491f762e35c16ce65781da820a67fa (patch) | |
tree | 6248b90ae6a523b311d903283374358cea8b73fb /drivers/media/video/cx23885/cx23885-dvb.c | |
parent | 9832d765f82769799ba15ac9d2e8edf8f7de6898 (diff) |
V4L/DVB (10987): cx23885: fix crash on non-netup cards
The new support for the CX23885_BOARD_NETUP_DUAL_DVBS2_CI board broke the
existing boards. Interrupts for the netup part were enabled and handled
without testing whether the current board actually had a netup -> instant
and fatal crash.
I've added tests to do this only for the CX23885_BOARD_NETUP_DUAL_DVBS2_CI
board.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Reviewed-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/cx23885/cx23885-dvb.c')
-rw-r--r-- | drivers/media/video/cx23885/cx23885-dvb.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/media/video/cx23885/cx23885-dvb.c b/drivers/media/video/cx23885/cx23885-dvb.c index 9a0bc6e84a95..8d731fffad58 100644 --- a/drivers/media/video/cx23885/cx23885-dvb.c +++ b/drivers/media/video/cx23885/cx23885-dvb.c | |||
@@ -778,7 +778,11 @@ int cx23885_dvb_unregister(struct cx23885_tsport *port) | |||
778 | if (fe0->dvb.frontend) | 778 | if (fe0->dvb.frontend) |
779 | videobuf_dvb_unregister_bus(&port->frontends); | 779 | videobuf_dvb_unregister_bus(&port->frontends); |
780 | 780 | ||
781 | netup_ci_exit(port); | 781 | switch (port->dev->board) { |
782 | case CX23885_BOARD_NETUP_DUAL_DVBS2_CI: | ||
783 | netup_ci_exit(port); | ||
784 | break; | ||
785 | } | ||
782 | 786 | ||
783 | return 0; | 787 | return 0; |
784 | } | 788 | } |