summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/frontends/alps_tdmb7.c
diff options
context:
space:
mode:
authorMichael Hunold <devnull@localhost>2003-04-25 08:21:35 +0000
committerMichael Hunold <devnull@localhost>2003-04-25 08:21:35 +0000
commitcb61a9ffb7f22d9d73d7263bf84142941b336050 (patch)
tree15cf8cb24554e4a1af38ecf999892bf84e78cd0f /linux/drivers/media/dvb/frontends/alps_tdmb7.c
parentf7e91da79a7d08e9aa8d555b7a6e96ca6548b93e (diff)
downloadmediapointer-dvb-s2-cb61a9ffb7f22d9d73d7263bf84142941b336050.tar.gz
mediapointer-dvb-s2-cb61a9ffb7f22d9d73d7263bf84142941b336050.tar.bz2
Lots of cosmetic changes in order to sync the CVS with
the version that made it into the 2.5.68 kernel. - remove unnecessary c++-style comments - fixed some line breaks and the style function headers are formatted: please don't argue with me about these changes, I don't care how they are formatted. - remove newline breaks between memory allocation and the return value check Some more interesing stuff: - remove ddelay() functions completly, replace with set_current_state() and manual schedule_timeout() calls. - made some init data for the mxb driver static and global (patch already send to lkml) Some crucial changes: - inherit some return values Mr. Alan Cox has changed -- please review
Diffstat (limited to 'linux/drivers/media/dvb/frontends/alps_tdmb7.c')
-rw-r--r--linux/drivers/media/dvb/frontends/alps_tdmb7.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/linux/drivers/media/dvb/frontends/alps_tdmb7.c b/linux/drivers/media/dvb/frontends/alps_tdmb7.c
index df95c64a6..54ac21eac 100644
--- a/linux/drivers/media/dvb/frontends/alps_tdmb7.c
+++ b/linux/drivers/media/dvb/frontends/alps_tdmb7.c
@@ -167,7 +167,8 @@ int cx22700_init (struct dvb_i2c_bus *i2c)
cx22700_writereg (i2c, 0x00, 0x02); /* soft reset */
cx22700_writereg (i2c, 0x00, 0x00);
- ddelay (HZ/100);
+ set_current_state(TASK_INTERRUPTIBLE);
+ schedule_timeout (1);
for (i=0; i<sizeof(init_tab); i+=2)
cx22700_writereg (i2c, init_tab[i], init_tab[i+1]);