From 71bc5163fa9945b71e86d22e3a4127a7ba1091fc Mon Sep 17 00:00:00 2001 From: Holger Waechtler Date: Sat, 21 Jun 2003 13:02:02 +0000 Subject: code review, use adap->num instead of card_num field, card_num and dev_num are deprecated -- to be removed. register network device for bt8xx cards --- linux/drivers/media/dvb/bt8xx/dvb-bt8xx.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'linux/drivers/media/dvb/bt8xx/dvb-bt8xx.c') diff --git a/linux/drivers/media/dvb/bt8xx/dvb-bt8xx.c b/linux/drivers/media/dvb/bt8xx/dvb-bt8xx.c index 9490e0cb4..1d47f90da 100644 --- a/linux/drivers/media/dvb/bt8xx/dvb-bt8xx.c +++ b/linux/drivers/media/dvb/bt8xx/dvb-bt8xx.c @@ -279,7 +279,9 @@ static int __init dvb_bt8xx_load(unsigned int bttv_nr, char *card_name, u32 gpio return result; } - + + dvb_net_init(card->adapter, &card->dvbnet, &card->demux.dmx); + dvb_bt8xx_tasklet.data = (long)card; card->bt->tasklet = &dvb_bt8xx_tasklet; @@ -305,6 +307,7 @@ static void dvb_bt8xx_close(void) bt878_stop(card->bt); + dvb_net_release(&card->dvbnet); card->demux.dmx.remove_frontend(&card->demux.dmx, &card->fe_mem); card->demux.dmx.remove_frontend(&card->demux.dmx, &card->fe_hw); dvb_dmxdev_release(&card->dmxdev); -- cgit v1.2.3