diff options
Diffstat (limited to 'drivers/media/dvb/bt8xx/dvb-bt8xx.c')
-rw-r--r-- | drivers/media/dvb/bt8xx/dvb-bt8xx.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/media/dvb/bt8xx/dvb-bt8xx.c b/drivers/media/dvb/bt8xx/dvb-bt8xx.c index a39439b5f04c..6afbfbbef0ce 100644 --- a/drivers/media/dvb/bt8xx/dvb-bt8xx.c +++ b/drivers/media/dvb/bt8xx/dvb-bt8xx.c | |||
@@ -40,6 +40,8 @@ static int debug; | |||
40 | module_param(debug, int, 0644); | 40 | module_param(debug, int, 0644); |
41 | MODULE_PARM_DESC(debug, "Turn on/off debugging (default:off)."); | 41 | MODULE_PARM_DESC(debug, "Turn on/off debugging (default:off)."); |
42 | 42 | ||
43 | DVB_DEFINE_MOD_OPT_ADAPTER_NR(adapter_nr); | ||
44 | |||
43 | #define dprintk( args... ) \ | 45 | #define dprintk( args... ) \ |
44 | do { \ | 46 | do { \ |
45 | if (debug) printk(KERN_DEBUG args); \ | 47 | if (debug) printk(KERN_DEBUG args); \ |
@@ -717,7 +719,10 @@ static int __devinit dvb_bt8xx_load_card(struct dvb_bt8xx_card *card, u32 type) | |||
717 | { | 719 | { |
718 | int result; | 720 | int result; |
719 | 721 | ||
720 | if ((result = dvb_register_adapter(&card->dvb_adapter, card->card_name, THIS_MODULE, &card->bt->dev->dev)) < 0) { | 722 | result = dvb_register_adapter(&card->dvb_adapter, card->card_name, |
723 | THIS_MODULE, &card->bt->dev->dev, | ||
724 | adapter_nr); | ||
725 | if (result < 0) { | ||
721 | printk("dvb_bt8xx: dvb_register_adapter failed (errno = %d)\n", result); | 726 | printk("dvb_bt8xx: dvb_register_adapter failed (errno = %d)\n", result); |
722 | return result; | 727 | return result; |
723 | } | 728 | } |