sisfb: replace SiS_SetMemory with memset_io
authorAaro Koskinen <aaro.koskinen@iki.fi>
Fri, 19 Nov 2010 21:58:49 +0000 (21:58 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Wed, 24 Nov 2010 07:03:09 +0000 (16:03 +0900)
Get rid of one more wrapper.

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Cc: Thomas Winischhofer <thomas@winischhofer.net>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
drivers/video/sis/init.c
drivers/video/sis/osdef.h

index bfc6a1a8eaa22cb0fb03560ac18c64f9419bf64b..31137adc8fba5245596d378bf785345957cc6597 100644 (file)
@@ -1578,7 +1578,7 @@ SiS_ClearBuffer(struct SiS_Private *SiS_Pr, unsigned short ModeNo)
 
    if(SiS_Pr->SiS_ModeType >= ModeEGA) {
       if(ModeNo > 0x13) {
-        SiS_SetMemory(memaddr, memsize, 0);
+        memset_io(memaddr, 0, memsize);
       } else {
         pBuffer = (unsigned short SISIOMEMTYPE *)memaddr;
         for(i = 0; i < 0x4000; i++) writew(0x0000, &pBuffer[i]);
@@ -1587,7 +1587,7 @@ SiS_ClearBuffer(struct SiS_Private *SiS_Pr, unsigned short ModeNo)
       pBuffer = (unsigned short SISIOMEMTYPE *)memaddr;
       for(i = 0; i < 0x4000; i++) writew(0x0720, &pBuffer[i]);
    } else {
-      SiS_SetMemory(memaddr, 0x8000, 0);
+      memset_io(memaddr, 0, 0x8000);
    }
 }
 
index be7f306515a1974c743420261200938f4d2290ba..af5e9a29be9b17e52d5d3b36caf5c886a268ca2a 100644 (file)
@@ -63,6 +63,4 @@
 #warning sisfb will not work!
 #endif
 
-#define SiS_SetMemory(MemoryAddress,MemorySize,value) memset_io(MemoryAddress, value, MemorySize)
-
 #endif  /* _OSDEF_H_ */