diff options
-rw-r--r-- | v4l/lgdt3302.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/v4l/lgdt3302.c b/v4l/lgdt3302.c index 92e50d7c9..eea0deb7a 100644 --- a/v4l/lgdt3302.c +++ b/v4l/lgdt3302.c @@ -537,6 +537,7 @@ struct dvb_frontend* lgdt3302_attach(const struct lgdt3302_config* config, struct i2c_adapter* i2c) { struct lgdt3302_state* state = NULL; + u8 buf[1]; /* Allocate memory for the internal state */ state = (struct lgdt3302_state*) kmalloc(sizeof(struct lgdt3302_state), GFP_KERNEL); @@ -549,7 +550,6 @@ struct dvb_frontend* lgdt3302_attach(const struct lgdt3302_config* config, state->i2c = i2c; memcpy(&state->ops, &lgdt3302_ops, sizeof(struct dvb_frontend_ops)); /* Verify communication with demod chip */ - u8 buf[1]; if (i2c_selectreadbytes(state, 2, buf, 1)) goto error; |