]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
Staging: xgifb: Remove XGI_SetMemory and XGI_MemoryCopy
authorBill Pemberton <wfp5p@virginia.edu>
Thu, 17 Jun 2010 17:10:40 +0000 (13:10 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 22 Jun 2010 21:25:48 +0000 (14:25 -0700)
These were just macros for memset and memcpy, so use those instead.

Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Cc: Arnaud Patard <apatard@mandriva.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/xgifb/osdef.h
drivers/staging/xgifb/vb_init.c
drivers/staging/xgifb/vb_setmode.c

index fb1d41149caac31b35a9719db690dd9e4e7d6e49..7d05ea47c72fba99ee4c934af9eb32a783f89f3b 100644 (file)
@@ -1,10 +1,6 @@
 #ifndef _OSDEF_H_
 #define _OSDEF_H_
 
-#define XGI_SetMemory(MemoryAddress,MemorySize,value) memset(MemoryAddress, value, MemorySize)
-
-#define XGI_MemoryCopy(Destination,Soruce,Length) memcpy(Destination,Soruce,Length)
-
 /**********************************************************************/
 
 #ifdef OutPortByte
index 94fa48b9f9f5c1bab896709797855eefacdd87db..dc1218463ea0dcdd81ac1d38509be3254697d74e 100644 (file)
@@ -175,8 +175,6 @@ if ( !HwDeviceExtension->bIntegratedMMEnabled )
 }
 printk("4");
 
-//    XGI_MemoryCopy( VBIOSVersion , HwDeviceExtension->szVBIOSVer , 4 ) ;
-
  //   VBIOSVersion[ 4 ] = 0x0 ;
 
     /* 09/07/99 modify by domao */
index daf7b3c739c0eb4311fcbbb40c076363cde0a1c6..95efa8bb0de018ca4baf0f088c67ceb63e85305c 100644 (file)
@@ -2609,7 +2609,7 @@ void XGI_ClearBuffer( PXGI_HW_DEVICE_INFO HwDeviceExtension , USHORT ModeNo, PVB
         {
             AdapterMemorySize = 0x40000 ;      /* clear 256k */
             /* GetDRAMSize( HwDeviceExtension ) ; */
-            XGI_SetMemory( VideoMemoryAddress , AdapterMemorySize , 0 ) ;
+           memset(VideoMemoryAddress, 0, AdapterMemorySize);
         }
         else
         {
@@ -2631,7 +2631,7 @@ void XGI_ClearBuffer( PXGI_HW_DEVICE_INFO HwDeviceExtension , USHORT ModeNo, PVB
 */
         }
         else
-            XGI_SetMemory( VideoMemoryAddress , 0x8000 , 0 ) ;
+               memset(VideoMemoryAddress , 0, 0x8000);
     }
 }