summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/b2c2/stv0297_cs2.c
diff options
context:
space:
mode:
Diffstat (limited to 'linux/drivers/media/dvb/b2c2/stv0297_cs2.c')
-rw-r--r--linux/drivers/media/dvb/b2c2/stv0297_cs2.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/linux/drivers/media/dvb/b2c2/stv0297_cs2.c b/linux/drivers/media/dvb/b2c2/stv0297_cs2.c
index 25088499b..826231164 100644
--- a/linux/drivers/media/dvb/b2c2/stv0297_cs2.c
+++ b/linux/drivers/media/dvb/b2c2/stv0297_cs2.c
@@ -41,7 +41,6 @@
struct stv0297_state {
struct i2c_adapter *i2c;
- struct dvb_frontend_ops ops;
const struct stv0297_config *config;
struct dvb_frontend frontend;
@@ -722,7 +721,6 @@ struct dvb_frontend *stv0297_cs2_attach(const struct stv0297_config *config,
/* setup the state */
state->config = config;
state->i2c = i2c;
- memcpy(&state->ops, &stv0297_ops, sizeof(struct dvb_frontend_ops));
state->base_freq = 0;
/* check if the demod is there */
@@ -730,7 +728,7 @@ struct dvb_frontend *stv0297_cs2_attach(const struct stv0297_config *config,
goto error;
/* create dvb_frontend */
- state->frontend.ops = &state->ops;
+ memcpy(&state->frontend.ops, &stv0297_ops, sizeof(struct dvb_frontend_ops));
state->frontend.demodulator_priv = state;
return &state->frontend;