summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/frontends/ves1820.c
diff options
context:
space:
mode:
authorHolger Waechtler <devnull@localhost>2003-03-22 11:43:15 +0000
committerHolger Waechtler <devnull@localhost>2003-03-22 11:43:15 +0000
commit63cb0c2e9b4d11a118ca8225f872f743302981e7 (patch)
tree2aca33f4f26a85b5209e87c83f857ee6e671de57 /linux/drivers/media/dvb/frontends/ves1820.c
parent45a8287d7d7b76915cbdd65021a0988ab49561ec (diff)
downloadmediapointer-dvb-s2-63cb0c2e9b4d11a118ca8225f872f743302981e7.tar.gz
mediapointer-dvb-s2-63cb0c2e9b4d11a118ca8225f872f743302981e7.tar.bz2
more portability, now frontend modules build out of the box
Diffstat (limited to 'linux/drivers/media/dvb/frontends/ves1820.c')
-rw-r--r--linux/drivers/media/dvb/frontends/ves1820.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/linux/drivers/media/dvb/frontends/ves1820.c b/linux/drivers/media/dvb/frontends/ves1820.c
index 10e9d59b5..e44da992b 100644
--- a/linux/drivers/media/dvb/frontends/ves1820.c
+++ b/linux/drivers/media/dvb/frontends/ves1820.c
@@ -19,9 +19,12 @@
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+#include <asm/errno.h>
#include <linux/init.h>
+#include <linux/kernel.h>
#include <linux/module.h>
-#include <linux/delay.h>
+#include <linux/string.h>
+#include <linux/slab.h>
#include "dvb_frontend.h"
#include "compat.h"
@@ -117,7 +120,7 @@ int ves1820_writereg (struct dvb_frontend *fe, 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;
}
@@ -203,7 +206,7 @@ int ves1820_setup_reg0 (struct dvb_frontend *fe, u8 reg0)
* check lock and toggle inversion bit if required...
*/
if (!(ves1820_readreg (fe, 0x11) & 0x08)) {
- ddelay(1);
+ ddelay(10);
if (!(ves1820_readreg (fe, 0x11) & 0x08)) {
reg0 ^= 0x20;
ves1820_writereg (fe, 0x00, reg0 & 0xfe);