diff options
Diffstat (limited to 'drivers/media/usb/dvb-usb-v2/af9035.c')
-rw-r--r-- | drivers/media/usb/dvb-usb-v2/af9035.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/drivers/media/usb/dvb-usb-v2/af9035.c b/drivers/media/usb/dvb-usb-v2/af9035.c index 31d09a23c82e..021e4d35e4d7 100644 --- a/drivers/media/usb/dvb-usb-v2/af9035.c +++ b/drivers/media/usb/dvb-usb-v2/af9035.c | |||
@@ -963,7 +963,7 @@ static int af9035_frontend_attach(struct dvb_usb_adapter *adap) | |||
963 | 963 | ||
964 | /* attach demodulator */ | 964 | /* attach demodulator */ |
965 | adap->fe[0] = dvb_attach(af9033_attach, &state->af9033_config[adap->id], | 965 | adap->fe[0] = dvb_attach(af9033_attach, &state->af9033_config[adap->id], |
966 | &d->i2c_adap); | 966 | &d->i2c_adap, &state->ops); |
967 | if (adap->fe[0] == NULL) { | 967 | if (adap->fe[0] == NULL) { |
968 | ret = -ENODEV; | 968 | ret = -ENODEV; |
969 | goto err; | 969 | goto err; |
@@ -1373,13 +1373,17 @@ static int af9035_get_stream_config(struct dvb_frontend *fe, u8 *ts_type, | |||
1373 | 1373 | ||
1374 | static int af9035_pid_filter_ctrl(struct dvb_usb_adapter *adap, int onoff) | 1374 | static int af9035_pid_filter_ctrl(struct dvb_usb_adapter *adap, int onoff) |
1375 | { | 1375 | { |
1376 | return af9033_pid_filter_ctrl(adap->fe[0], onoff); | 1376 | struct state *state = adap_to_priv(adap); |
1377 | |||
1378 | return state->ops.pid_filter_ctrl(adap->fe[0], onoff); | ||
1377 | } | 1379 | } |
1378 | 1380 | ||
1379 | static int af9035_pid_filter(struct dvb_usb_adapter *adap, int index, u16 pid, | 1381 | static int af9035_pid_filter(struct dvb_usb_adapter *adap, int index, u16 pid, |
1380 | int onoff) | 1382 | int onoff) |
1381 | { | 1383 | { |
1382 | return af9033_pid_filter(adap->fe[0], index, pid, onoff); | 1384 | struct state *state = adap_to_priv(adap); |
1385 | |||
1386 | return state->ops.pid_filter(adap->fe[0], index, pid, onoff); | ||
1383 | } | 1387 | } |
1384 | 1388 | ||
1385 | static int af9035_probe(struct usb_interface *intf, | 1389 | static int af9035_probe(struct usb_interface *intf, |