diff options
Diffstat (limited to 'linux/drivers/media/dvb/dvb-usb/dvb-usb-dvb.c')
-rw-r--r-- | linux/drivers/media/dvb/dvb-usb/dvb-usb-dvb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/linux/drivers/media/dvb/dvb-usb/dvb-usb-dvb.c b/linux/drivers/media/dvb/dvb-usb/dvb-usb-dvb.c index f33a16c61..bdd72f779 100644 --- a/linux/drivers/media/dvb/dvb-usb/dvb-usb-dvb.c +++ b/linux/drivers/media/dvb/dvb-usb/dvb-usb-dvb.c @@ -128,20 +128,20 @@ err_dmx: err: return ret; success: - d->init_state |= DVB_USB_STATE_DVB; + d->state |= DVB_USB_STATE_DVB; return 0; } int dvb_usb_dvb_exit(struct dvb_usb_device *d) { - if (d->init_state & DVB_USB_STATE_DVB) { - d->init_state &= ~DVB_USB_STATE_DVB; + if (d->state & DVB_USB_STATE_DVB) { deb_info("unregistering DVB part\n"); dvb_net_release(&d->dvb_net); d->demux.dmx.close(&d->demux.dmx); dvb_dmxdev_release(&d->dmxdev); dvb_dmx_release(&d->demux); dvb_unregister_adapter(&d->dvb_adap); + d->state &= ~DVB_USB_STATE_DVB; } return 0; } |