OSDN Git Service

staging: xgifb: vb_util: delete commented-out code
authorAaro Koskinen <aaro.koskinen@iki.fi>
Sun, 13 Mar 2011 10:26:17 +0000 (12:26 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 14 Mar 2011 18:52:29 +0000 (11:52 -0700)
Delete commented-out code.

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/xgifb/vb_util.c
drivers/staging/xgifb/vb_util.h

index f542d66..465bcda 100644 (file)
@@ -21,22 +21,6 @@ void XGINew_SetReg1(unsigned long port, unsigned short index,
        outb(data, port + 1);
 }
 
-/* --------------------------------------------------------------------- */
-/* Function : XGINew_SetReg2 */
-/* Input : */
-/* Output : */
-/* Description : AR( 3C0 ) */
-/* --------------------------------------------------------------------- */
-/*
-void XGINew_SetReg2(unsigned long port, unsigned short index, unsigned short data)
-{
-       InPortByte((P unsigned char)port + 0x3da - 0x3c0) ;
-       OutPortByte(XGINew_P3c0, index);
-       OutPortByte(XGINew_P3c0, data);
-       OutPortByte(XGINew_P3c0, 0x20);
-}
-*/
-
 void XGINew_SetReg3(unsigned long port, unsigned short data)
 {
        outb(data, port);
@@ -103,21 +87,3 @@ void XGINew_SetRegOR(unsigned long Port, unsigned short Index,
        temp |= DataOR;
        XGINew_SetReg1(Port, Index, temp);
 }
-
-#if 0
-void NewDelaySeconds(int seconds)
-{
-       int i;
-
-       for (i = 0; i < seconds; i++) {
-
-       }
-}
-
-void Newdebugcode(unsigned char code)
-{
-       /* OutPortByte(0x80, code); */
-       /* OutPortByte(0x300, code); */
-       /* NewDelaySeconds(0x3); */
-}
-#endif
index 156f644..bf52127 100644 (file)
@@ -1,7 +1,5 @@
 #ifndef _VBUTIL_
 #define _VBUTIL_
-extern   void     NewDelaySeconds( int );
-extern   void     Newdebugcode(unsigned char);
 extern   void     XGINew_SetReg1(unsigned long, unsigned short, unsigned short);
 extern   void     XGINew_SetReg3(unsigned long, unsigned short);
 extern    unsigned char     XGINew_GetReg1(unsigned long, unsigned short);