diff options
Diffstat (limited to 'drivers/media/dvb/dvb-usb/digitv.c')
-rw-r--r-- | drivers/media/dvb/dvb-usb/digitv.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/drivers/media/dvb/dvb-usb/digitv.c b/drivers/media/dvb/dvb-usb/digitv.c index 1e17d15bd3e9..edabdae5accb 100644 --- a/drivers/media/dvb/dvb-usb/digitv.c +++ b/drivers/media/dvb/dvb-usb/digitv.c | |||
@@ -137,11 +137,11 @@ static int digitv_frontend_attach(struct dvb_usb_adapter *adap) | |||
137 | { | 137 | { |
138 | struct digitv_state *st = adap->dev->priv; | 138 | struct digitv_state *st = adap->dev->priv; |
139 | 139 | ||
140 | if ((adap->fe[0] = dvb_attach(mt352_attach, &digitv_mt352_config, &adap->dev->i2c_adap)) != NULL) { | 140 | if ((adap->fe_adap[0].fe = dvb_attach(mt352_attach, &digitv_mt352_config, &adap->dev->i2c_adap)) != NULL) { |
141 | st->is_nxt6000 = 0; | 141 | st->is_nxt6000 = 0; |
142 | return 0; | 142 | return 0; |
143 | } | 143 | } |
144 | if ((adap->fe[0] = dvb_attach(nxt6000_attach, &digitv_nxt6000_config, &adap->dev->i2c_adap)) != NULL) { | 144 | if ((adap->fe_adap[0].fe = dvb_attach(nxt6000_attach, &digitv_nxt6000_config, &adap->dev->i2c_adap)) != NULL) { |
145 | st->is_nxt6000 = 1; | 145 | st->is_nxt6000 = 1; |
146 | return 0; | 146 | return 0; |
147 | } | 147 | } |
@@ -152,11 +152,11 @@ static int digitv_tuner_attach(struct dvb_usb_adapter *adap) | |||
152 | { | 152 | { |
153 | struct digitv_state *st = adap->dev->priv; | 153 | struct digitv_state *st = adap->dev->priv; |
154 | 154 | ||
155 | if (!dvb_attach(dvb_pll_attach, adap->fe[0], 0x60, NULL, DVB_PLL_TDED4)) | 155 | if (!dvb_attach(dvb_pll_attach, adap->fe_adap[0].fe, 0x60, NULL, DVB_PLL_TDED4)) |
156 | return -ENODEV; | 156 | return -ENODEV; |
157 | 157 | ||
158 | if (st->is_nxt6000) | 158 | if (st->is_nxt6000) |
159 | adap->fe[0]->ops.tuner_ops.set_params = digitv_nxt6000_tuner_set_params; | 159 | adap->fe_adap[0].fe->ops.tuner_ops.set_params = digitv_nxt6000_tuner_set_params; |
160 | 160 | ||
161 | return 0; | 161 | return 0; |
162 | } | 162 | } |
@@ -292,6 +292,8 @@ static struct dvb_usb_device_properties digitv_properties = { | |||
292 | .num_adapters = 1, | 292 | .num_adapters = 1, |
293 | .adapter = { | 293 | .adapter = { |
294 | { | 294 | { |
295 | .num_frontends = 1, | ||
296 | .fe = {{ | ||
295 | .frontend_attach = digitv_frontend_attach, | 297 | .frontend_attach = digitv_frontend_attach, |
296 | .tuner_attach = digitv_tuner_attach, | 298 | .tuner_attach = digitv_tuner_attach, |
297 | 299 | ||
@@ -306,6 +308,7 @@ static struct dvb_usb_device_properties digitv_properties = { | |||
306 | } | 308 | } |
307 | } | 309 | } |
308 | }, | 310 | }, |
311 | }}, | ||
309 | } | 312 | } |
310 | }, | 313 | }, |
311 | .identify_state = digitv_identify_state, | 314 | .identify_state = digitv_identify_state, |