summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/frontends/at76c651.c
diff options
context:
space:
mode:
Diffstat (limited to 'linux/drivers/media/dvb/frontends/at76c651.c')
-rw-r--r--linux/drivers/media/dvb/frontends/at76c651.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/linux/drivers/media/dvb/frontends/at76c651.c b/linux/drivers/media/dvb/frontends/at76c651.c
index 5fa065962..288d59d02 100644
--- a/linux/drivers/media/dvb/frontends/at76c651.c
+++ b/linux/drivers/media/dvb/frontends/at76c651.c
@@ -22,11 +22,12 @@
*
*/
-#include <linux/module.h>
+#include <asm/errno.h>
#include <linux/init.h>
-#include <linux/delay.h>
+#include <linux/module.h>
+#include <linux/kernel.h>
+#include <linux/string.h>
#include <linux/slab.h>
-#include <linux/i2c.h>
#if defined(__powerpc__)
#include <asm/bitops.h>
@@ -34,6 +35,7 @@
#include "dvb_frontend.h"
#include "dvb_i2c.h"
+#include "compat.h"
static int debug = 0;
@@ -103,7 +105,7 @@ at76c651_writereg(struct dvb_i2c_bus *i2c, u8 reg, u8 data)
"(reg == 0x%02x, val == 0x%02x, ret == %i)\n",
__FUNCTION__, reg, data, ret);
- mdelay(10);
+ ddelay(10);
return (ret != 1) ? -EREMOTEIO : 0;