]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] drivers/char/rio/: kill rio_udelay
authorAdrian Bunk <bunk@stusta.de>
Sat, 25 Jun 2005 21:59:35 +0000 (14:59 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sat, 25 Jun 2005 23:25:10 +0000 (16:25 -0700)
There's no need for a function that only calls udelay.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/char/rio/func.h
drivers/char/rio/rio_linux.c
drivers/char/rio/rioinit.c

index e8f3860f4726c76590c82dff6fbd1892af6ac76e..01987c6dc398d8791af4e2c23c61aedef16f70b3 100644 (file)
@@ -147,7 +147,6 @@ struct rio_info * rio_info_store( int cmd, struct rio_info * p);
 extern int    rio_pcicopy(char *src, char *dst, int n);
 extern int rio_minor (struct tty_struct *tty);
 extern int rio_ismodem (struct tty_struct *tty);
-extern void rio_udelay (int usecs);
 
 extern void rio_start_card_running (struct Host * HostP);
 
index 763893e289b35367f6fb94b7a5cbae73f8892070..7db3370f4972701c674739feeab4f8ecb156d38b 100644 (file)
@@ -354,11 +354,6 @@ int rio_ismodem(struct tty_struct *tty)
 }
 
 
-void rio_udelay (int usecs)
-{
-  udelay (usecs);
-}
-
 static int rio_set_real_termios (void *ptr)
 {
   int rv, modem;
index dca941ed10cfb7e007ae7119b2d4330d086e9a16..898a126ae3e654d0087c41184259127fdc347f97 100644 (file)
@@ -37,6 +37,7 @@ static char *_rioinit_c_sccs_ = "@(#)rioinit.c        1.3";
 #include <linux/module.h>
 #include <linux/slab.h>
 #include <linux/errno.h>
+#include <linux/delay.h>
 #include <asm/io.h>
 #include <asm/system.h>
 #include <asm/string.h>
@@ -1560,14 +1561,14 @@ uint Slot;
                                          INTERRUPT_DISABLE | BYTE_OPERATION |
                                          SLOW_LINKS | SLOW_AT_BUS);
                        WBYTE(DpRamP->DpResetTpu, 0xFF);
-                       rio_udelay (3);
+                       udelay(3);
 
                        rio_dprintk (RIO_DEBUG_INIT,  "RIOHostReset: Don't know if it worked. Try reset again\n");
                        WBYTE(DpRamP->DpControl,  BOOT_FROM_RAM | EXTERNAL_BUS_OFF |
                                          INTERRUPT_DISABLE | BYTE_OPERATION |
                                          SLOW_LINKS | SLOW_AT_BUS);
                        WBYTE(DpRamP->DpResetTpu, 0xFF);
-                       rio_udelay (3);
+                       udelay(3);
                        break;
 #ifdef FUTURE_RELEASE
        case RIO_EISA:
@@ -1599,7 +1600,7 @@ uint Slot;
                DpRamP->DpControl  = RIO_PCI_BOOT_FROM_RAM;
                DpRamP->DpResetInt = 0xFF;
                DpRamP->DpResetTpu = 0xFF;
-               rio_udelay (100);
+               udelay(100);
                /* for (i=0; i<6000; i++);  */
                /* suspend( 3 ); */
                break;