summaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/dvb-usb
diff options
context:
space:
mode:
authorAntti Palosaari <crope@iki.fi>2012-06-16 01:46:44 +0200
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-08-04 12:56:34 +0200
commitdd5e52cdf9e2518e79b634fa2ae1cc86e37cff14 (patch)
treed3e73b884b2dc3c2ed2d63dcc8157f0eb8f5ddc2 /drivers/media/dvb/dvb-usb
parent[media] dvb_usb_v2: move fe_ioctl_override() callback (diff)
downloadlinux-dd5e52cdf9e2518e79b634fa2ae1cc86e37cff14.tar.xz
linux-dd5e52cdf9e2518e79b634fa2ae1cc86e37cff14.zip
[media] dvb_usb_v2: remove num_frontends_initialized from dvb_usb_adapter
We can live easily without that variable. Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/dvb-usb')
-rw-r--r--drivers/media/dvb/dvb-usb/dvb_usb.h1
-rw-r--r--drivers/media/dvb/dvb-usb/dvb_usb_dvb.c6
2 files changed, 1 insertions, 6 deletions
diff --git a/drivers/media/dvb/dvb-usb/dvb_usb.h b/drivers/media/dvb/dvb-usb/dvb_usb.h
index 98504b59b102..6392fd3d4164 100644
--- a/drivers/media/dvb/dvb-usb/dvb_usb.h
+++ b/drivers/media/dvb/dvb-usb/dvb_usb.h
@@ -288,7 +288,6 @@ struct dvb_usb_adapter {
int (*fe_sleep[MAX_NO_OF_FE_PER_ADAP]) (struct dvb_frontend *);
int active_fe;
- int num_frontends_initialized;
};
/**
diff --git a/drivers/media/dvb/dvb-usb/dvb_usb_dvb.c b/drivers/media/dvb/dvb-usb/dvb_usb_dvb.c
index d436a1582022..bc94874039e8 100644
--- a/drivers/media/dvb/dvb-usb/dvb_usb_dvb.c
+++ b/drivers/media/dvb/dvb-usb/dvb_usb_dvb.c
@@ -386,8 +386,6 @@ int dvb_usbv2_adapter_frontend_init(struct dvb_usb_adapter *adap)
}
}
- adap->num_frontends_initialized = count_registered;
-
return 0;
err_dvb_unregister_frontend:
@@ -410,14 +408,12 @@ int dvb_usbv2_adapter_frontend_exit(struct dvb_usb_adapter *adap)
int i;
pr_debug("%s: adap=%d\n", __func__, adap->id);
- for (i = adap->num_frontends_initialized - 1; i >= 0; i--) {
+ for (i = MAX_NO_OF_FE_PER_ADAP - 1; i >= 0; i--) {
if (adap->fe[i]) {
dvb_unregister_frontend(adap->fe[i]);
dvb_frontend_detach(adap->fe[i]);
}
}
- adap->num_frontends_initialized = 0;
-
return 0;
}