diff options
Diffstat (limited to 'linux/drivers/media/dvb/frontends/grundig_29504-491.c')
-rw-r--r-- | linux/drivers/media/dvb/frontends/grundig_29504-491.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/linux/drivers/media/dvb/frontends/grundig_29504-491.c b/linux/drivers/media/dvb/frontends/grundig_29504-491.c index 0eff691c7..04f87d4ab 100644 --- a/linux/drivers/media/dvb/frontends/grundig_29504-491.c +++ b/linux/drivers/media/dvb/frontends/grundig_29504-491.c @@ -24,9 +24,14 @@ */ +#include <asm/errno.h> #include <linux/init.h> +#include <linux/kernel.h> #include <linux/module.h> +#include <linux/string.h> +#include <linux/slab.h> +#include "compat.h" #include "dvb_frontend.h" static int debug = 0; @@ -222,7 +227,7 @@ int tda8083_set_symbolrate (struct dvb_i2c_bus *i2c, u32 srate) tmp = (tmp % srate) << 8; ratio = (ratio << 8) + tmp / srate; - dprintk("tda8083: ratio == %08x\n", ratio); + dprintk("tda8083: ratio == %08x\n", (unsigned int) ratio); tda8083_writereg (i2c, 0x05, filter); tda8083_writereg (i2c, 0x02, (ratio >> 16) & 0xff); @@ -244,8 +249,7 @@ void tda8083_wait_diseqc_fifo (struct dvb_i2c_bus *i2c, int timeout) while (jiffies - start < timeout && !(tda8083_readreg(i2c, 0x02) & 0x80)) { - current->state = TASK_INTERRUPTIBLE; - schedule_timeout (5); + ddelay(50); }; } |