diff options
Diffstat (limited to 'drivers/media/video')
-rw-r--r-- | drivers/media/video/cx88/cx88-cards.c | 4 | ||||
-rw-r--r-- | drivers/media/video/cx88/cx88-mpeg.c | 8 |
2 files changed, 4 insertions, 8 deletions
diff --git a/drivers/media/video/cx88/cx88-cards.c b/drivers/media/video/cx88/cx88-cards.c index fbc224f46e0e..5bcbb4cc7c2a 100644 --- a/drivers/media/video/cx88/cx88-cards.c +++ b/drivers/media/video/cx88/cx88-cards.c | |||
@@ -3044,8 +3044,8 @@ struct cx88_core *cx88_core_create(struct pci_dev *pci, int nr) | |||
3044 | 3044 | ||
3045 | memcpy(&core->board, &cx88_boards[core->boardnr], sizeof(core->board)); | 3045 | memcpy(&core->board, &cx88_boards[core->boardnr], sizeof(core->board)); |
3046 | 3046 | ||
3047 | if (!core->board.num_frontends) | 3047 | if (!core->board.num_frontends && (core->board.mpeg & CX88_MPEG_DVB)) |
3048 | core->board.num_frontends=1; | 3048 | core->board.num_frontends = 1; |
3049 | 3049 | ||
3050 | info_printk(core, "subsystem: %04x:%04x, board: %s [card=%d,%s], frontend(s): %d\n", | 3050 | info_printk(core, "subsystem: %04x:%04x, board: %s [card=%d,%s], frontend(s): %d\n", |
3051 | pci->subsystem_vendor, pci->subsystem_device, core->board.name, | 3051 | pci->subsystem_vendor, pci->subsystem_device, core->board.name, |
diff --git a/drivers/media/video/cx88/cx88-mpeg.c b/drivers/media/video/cx88/cx88-mpeg.c index b21fd93c1929..a1c435b4b1cd 100644 --- a/drivers/media/video/cx88/cx88-mpeg.c +++ b/drivers/media/video/cx88/cx88-mpeg.c | |||
@@ -785,11 +785,6 @@ static int __devinit cx8802_probe(struct pci_dev *pci_dev, | |||
785 | if (!core->board.mpeg) | 785 | if (!core->board.mpeg) |
786 | goto fail_core; | 786 | goto fail_core; |
787 | 787 | ||
788 | if (!core->board.num_frontends) { | ||
789 | printk(KERN_ERR "%s() .num_frontends should be non-zero, err = %d\n", __func__, err); | ||
790 | goto fail_core; | ||
791 | } | ||
792 | |||
793 | err = -ENOMEM; | 788 | err = -ENOMEM; |
794 | dev = kzalloc(sizeof(*dev),GFP_KERNEL); | 789 | dev = kzalloc(sizeof(*dev),GFP_KERNEL); |
795 | if (NULL == dev) | 790 | if (NULL == dev) |
@@ -808,7 +803,8 @@ static int __devinit cx8802_probe(struct pci_dev *pci_dev, | |||
808 | mutex_init(&dev->frontends.lock); | 803 | mutex_init(&dev->frontends.lock); |
809 | INIT_LIST_HEAD(&dev->frontends.felist); | 804 | INIT_LIST_HEAD(&dev->frontends.felist); |
810 | 805 | ||
811 | printk(KERN_INFO "%s() allocating %d frontend(s)\n", __func__, core->board.num_frontends); | 806 | if (core->board.num_frontends) |
807 | printk(KERN_INFO "%s() allocating %d frontend(s)\n", __func__, core->board.num_frontends); | ||
812 | 808 | ||
813 | for (i = 1; i <= core->board.num_frontends; i++) { | 809 | for (i = 1; i <= core->board.num_frontends; i++) { |
814 | demod = videobuf_dvb_alloc_frontend(&dev->frontends, i); | 810 | demod = videobuf_dvb_alloc_frontend(&dev->frontends, i); |