Commit 1c9c73b7 authored by Antti Palosaari's avatar Antti Palosaari Committed by Mauro Carvalho Chehab

[media] dvb_usb_v2: remove .num_frontends

It is no longer needed because all frontends are attached as a one go.
Signed-off-by: default avatarAntti Palosaari <crope@iki.fi>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 20bb9cc4
...@@ -135,7 +135,6 @@ struct dvb_usb_adapter_properties { ...@@ -135,7 +135,6 @@ struct dvb_usb_adapter_properties {
int (*fe_ioctl_override) (struct dvb_frontend *, int (*fe_ioctl_override) (struct dvb_frontend *,
unsigned int, void *, unsigned int); unsigned int, void *, unsigned int);
int num_frontends;
struct usb_data_stream_properties stream; struct usb_data_stream_properties stream;
}; };
......
...@@ -186,7 +186,6 @@ static int dvb_usb_stop_feed(struct dvb_demux_feed *dvbdmxfeed) ...@@ -186,7 +186,6 @@ static int dvb_usb_stop_feed(struct dvb_demux_feed *dvbdmxfeed)
int dvb_usb_adapter_dvb_init(struct dvb_usb_adapter *adap) int dvb_usb_adapter_dvb_init(struct dvb_usb_adapter *adap)
{ {
int i;
int ret = dvb_register_adapter(&adap->dvb_adap, adap->dev->name, int ret = dvb_register_adapter(&adap->dvb_adap, adap->dev->name,
adap->dev->props.owner, adap->dev->props.owner,
&adap->dev->udev->dev, &adap->dev->udev->dev,
...@@ -211,10 +210,8 @@ int dvb_usb_adapter_dvb_init(struct dvb_usb_adapter *adap) ...@@ -211,10 +210,8 @@ int dvb_usb_adapter_dvb_init(struct dvb_usb_adapter *adap)
adap->demux.priv = adap; adap->demux.priv = adap;
adap->demux.filternum = 0; adap->demux.filternum = 0;
for (i = 0; i < adap->props.num_frontends; i++) { if (adap->demux.filternum < adap->max_feed_count)
if (adap->demux.filternum < adap->max_feed_count) adap->demux.filternum = adap->max_feed_count;
adap->demux.filternum = adap->max_feed_count;
}
adap->demux.feednum = adap->demux.filternum; adap->demux.feednum = adap->demux.filternum;
adap->demux.start_feed = dvb_usb_start_feed; adap->demux.start_feed = dvb_usb_start_feed;
adap->demux.stop_feed = dvb_usb_stop_feed; adap->demux.stop_feed = dvb_usb_stop_feed;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment