if (!adap)
return -EINVAL;
- st = adap->priv;
+ st = adap->dev->priv;
if (!st)
return -EINVAL;
static int az6007_frontend_attach(struct dvb_usb_adapter *adap)
{
- struct az6007_device_state *st = adap->priv;
+ struct az6007_device_state *st = adap->dev->priv;
BUG_ON(!st);
static int az6007_tuner_attach(struct dvb_usb_adapter *adap)
{
- struct az6007_device_state *st = adap->priv;
+ struct az6007_device_state *st = adap->dev->priv;
if (st->tuner_attached)
return 0;
.usb_ctrl = CYPRESS_FX2,
.firmware = "dvb-usb-terratec-h7-az6007.fw",
.no_reconnect = 1,
-
- .identify_state = az6007_identify_state,
+ .size_of_priv = sizeof(struct az6007_device_state),
+ .identify_state = az6007_identify_state,
.num_adapters = 1,
.adapter = {
{
}
}
},
- .size_of_priv = sizeof(struct az6007_device_state),
}}
} },
.power_ctrl = az6007_power_ctrl,