diff options
Diffstat (limited to 'drivers/media/video/saa6588.c')
-rw-r--r-- | drivers/media/video/saa6588.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/media/video/saa6588.c b/drivers/media/video/saa6588.c index 72b70eb5da1d..dca3ddfd510f 100644 --- a/drivers/media/video/saa6588.c +++ b/drivers/media/video/saa6588.c | |||
@@ -31,7 +31,6 @@ | |||
31 | #include <linux/wait.h> | 31 | #include <linux/wait.h> |
32 | #include <asm/uaccess.h> | 32 | #include <asm/uaccess.h> |
33 | 33 | ||
34 | #include <media/id.h> | ||
35 | 34 | ||
36 | #include "rds.h" | 35 | #include "rds.h" |
37 | 36 | ||
@@ -246,7 +245,7 @@ static void block_to_buf(struct saa6588 *s, unsigned char *blockbuf) | |||
246 | s->wr_index = 0; | 245 | s->wr_index = 0; |
247 | 246 | ||
248 | if (s->wr_index == s->rd_index) { | 247 | if (s->wr_index == s->rd_index) { |
249 | s->rd_index++; | 248 | s->rd_index += 3; |
250 | if (s->rd_index >= s->buf_size) | 249 | if (s->rd_index >= s->buf_size) |
251 | s->rd_index = 0; | 250 | s->rd_index = 0; |
252 | } else | 251 | } else |
@@ -328,7 +327,7 @@ static void saa6588_work(void *data) | |||
328 | struct saa6588 *s = (struct saa6588 *)data; | 327 | struct saa6588 *s = (struct saa6588 *)data; |
329 | 328 | ||
330 | saa6588_i2c_poll(s); | 329 | saa6588_i2c_poll(s); |
331 | mod_timer(&s->timer, jiffies + HZ / 50); /* 20 msec */ | 330 | mod_timer(&s->timer, jiffies + msecs_to_jiffies(20)); |
332 | } | 331 | } |
333 | 332 | ||
334 | static int saa6588_configure(struct saa6588 *s) | 333 | static int saa6588_configure(struct saa6588 *s) |
@@ -434,9 +433,9 @@ static int saa6588_probe(struct i2c_adapter *adap) | |||
434 | return i2c_probe(adap, &addr_data, saa6588_attach); | 433 | return i2c_probe(adap, &addr_data, saa6588_attach); |
435 | #else | 434 | #else |
436 | switch (adap->id) { | 435 | switch (adap->id) { |
437 | case I2C_ALGO_BIT | I2C_HW_B_BT848: | 436 | case I2C_HW_B_BT848: |
438 | case I2C_ALGO_BIT | I2C_HW_B_RIVA: | 437 | case I2C_HW_B_RIVA: |
439 | case I2C_ALGO_SAA7134: | 438 | case I2C_HW_SAA7134: |
440 | return i2c_probe(adap, &addr_data, saa6588_attach); | 439 | return i2c_probe(adap, &addr_data, saa6588_attach); |
441 | break; | 440 | break; |
442 | } | 441 | } |