diff options
Diffstat (limited to 'drivers/media/dvb/ttpci/budget-core.c')
-rw-r--r-- | drivers/media/dvb/ttpci/budget-core.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/media/dvb/ttpci/budget-core.c b/drivers/media/dvb/ttpci/budget-core.c index 06bbce42fcd7..18cac4b12ab2 100644 --- a/drivers/media/dvb/ttpci/budget-core.c +++ b/drivers/media/dvb/ttpci/budget-core.c | |||
@@ -57,6 +57,8 @@ module_param_named(bufsize, dma_buffer_size, int, 0444); | |||
57 | MODULE_PARM_DESC(debug, "Turn on/off budget debugging (default:off)."); | 57 | MODULE_PARM_DESC(debug, "Turn on/off budget debugging (default:off)."); |
58 | MODULE_PARM_DESC(bufsize, "DMA buffer size in KB, default: 188, min: 188, max: 1410 (Activy: 564)"); | 58 | MODULE_PARM_DESC(bufsize, "DMA buffer size in KB, default: 188, min: 188, max: 1410 (Activy: 564)"); |
59 | 59 | ||
60 | DVB_DEFINE_MOD_OPT_ADAPTER_NR(adapter_nr); | ||
61 | |||
60 | /**************************************************************************** | 62 | /**************************************************************************** |
61 | * TT budget / WinTV Nova | 63 | * TT budget / WinTV Nova |
62 | ****************************************************************************/ | 64 | ****************************************************************************/ |
@@ -471,9 +473,10 @@ int ttpci_budget_init(struct budget *budget, struct saa7146_dev *dev, | |||
471 | budget->buffer_width, budget->buffer_height); | 473 | budget->buffer_width, budget->buffer_height); |
472 | printk("%s: dma buffer size %u\n", budget->dev->name, budget->buffer_size); | 474 | printk("%s: dma buffer size %u\n", budget->dev->name, budget->buffer_size); |
473 | 475 | ||
474 | if ((ret = dvb_register_adapter(&budget->dvb_adapter, budget->card->name, owner, &budget->dev->pci->dev)) < 0) { | 476 | ret = dvb_register_adapter(&budget->dvb_adapter, budget->card->name, |
477 | owner, &budget->dev->pci->dev, adapter_nr); | ||
478 | if (ret < 0) | ||
475 | return ret; | 479 | return ret; |
476 | } | ||
477 | 480 | ||
478 | /* set dd1 stream a & b */ | 481 | /* set dd1 stream a & b */ |
479 | saa7146_write(dev, DD1_STREAM_B, 0x00000000); | 482 | saa7146_write(dev, DD1_STREAM_B, 0x00000000); |