diff options
-rw-r--r-- | drivers/media/dvb/frontends/or51132.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/media/dvb/frontends/or51132.c b/drivers/media/dvb/frontends/or51132.c index 56d1109b90a2..619856b076cd 100644 --- a/drivers/media/dvb/frontends/or51132.c +++ b/drivers/media/dvb/frontends/or51132.c | |||
@@ -240,7 +240,7 @@ static int or51132_sleep(struct dvb_frontend* fe) | |||
240 | static int or51132_setmode(struct dvb_frontend* fe) | 240 | static int or51132_setmode(struct dvb_frontend* fe) |
241 | { | 241 | { |
242 | struct or51132_state* state = fe->demodulator_priv; | 242 | struct or51132_state* state = fe->demodulator_priv; |
243 | unsigned char cmd_buf[4]; | 243 | unsigned char cmd_buf[3]; |
244 | 244 | ||
245 | dprintk("setmode %d\n",(int)state->current_modulation); | 245 | dprintk("setmode %d\n",(int)state->current_modulation); |
246 | /* set operation mode in Receiver 1 register; */ | 246 | /* set operation mode in Receiver 1 register; */ |
@@ -260,7 +260,6 @@ static int or51132_setmode(struct dvb_frontend* fe) | |||
260 | default: | 260 | default: |
261 | printk("setmode:Modulation set to unsupported value\n"); | 261 | printk("setmode:Modulation set to unsupported value\n"); |
262 | }; | 262 | }; |
263 | cmd_buf[3] = 0x00; | ||
264 | if (i2c_writebytes(state,state->config->demod_address, | 263 | if (i2c_writebytes(state,state->config->demod_address, |
265 | cmd_buf,3)) { | 264 | cmd_buf,3)) { |
266 | printk(KERN_WARNING "or51132: set_mode error 1\n"); | 265 | printk(KERN_WARNING "or51132: set_mode error 1\n"); |
@@ -298,7 +297,6 @@ static int or51132_setmode(struct dvb_frontend* fe) | |||
298 | default: | 297 | default: |
299 | printk("setmode: Modulation set to unsupported value\n"); | 298 | printk("setmode: Modulation set to unsupported value\n"); |
300 | }; | 299 | }; |
301 | cmd_buf[3] = 0x00; | ||
302 | msleep(20); /* 20ms */ | 300 | msleep(20); /* 20ms */ |
303 | if (i2c_writebytes(state,state->config->demod_address, | 301 | if (i2c_writebytes(state,state->config->demod_address, |
304 | cmd_buf,3)) { | 302 | cmd_buf,3)) { |