staging: xgifb: eliminate pVBInfo->CR6E/6F/89
authorAaro Koskinen <aaro.koskinen@iki.fi>
Sun, 4 Nov 2012 19:14:56 +0000 (21:14 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Nov 2012 20:54:20 +0000 (12:54 -0800)
Eliminate dummy zero read-only global data.

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/xgifb/vb_init.c
drivers/staging/xgifb/vb_setmode.c
drivers/staging/xgifb/vb_struct.h
drivers/staging/xgifb/vb_table.h

index 7739dbd..72a0960 100644 (file)
@@ -444,7 +444,7 @@ static void XGINew_SetDRAMDefaultRegister340(
        temp2 = 0;
        for (i = 0; i < 4; i++) {
                /* CR6E DQM fine tune delay */
-               temp = pVBInfo->CR6E[pVBInfo->ram_type][i];
+               temp = 0;
                for (j = 0; j < 4; j++) {
                        temp1 = ((temp >> (2 * j)) & 0x03) << 2;
                        temp2 |= temp1;
@@ -463,7 +463,7 @@ static void XGINew_SetDRAMDefaultRegister340(
                temp2 = 0;
                for (i = 0; i < 8; i++) {
                        /* CR6F DQ fine tune delay */
-                       temp = pVBInfo->CR6F[pVBInfo->ram_type][8 * k + i];
+                       temp = 0;
                        for (j = 0; j < 4; j++) {
                                temp1 = (temp >> (2 * j)) & 0x03;
                                temp2 |= temp1;
@@ -486,7 +486,7 @@ static void XGINew_SetDRAMDefaultRegister340(
 
        temp2 = 0x80;
        /* CR89 terminator type select */
-       temp = pVBInfo->CR89[pVBInfo->ram_type][0];
+       temp = 0;
        for (j = 0; j < 4; j++) {
                temp1 = (temp >> (2 * j)) & 0x03;
                temp2 |= temp1;
@@ -496,7 +496,7 @@ static void XGINew_SetDRAMDefaultRegister340(
                temp2 += 0x10;
        }
 
-       temp = pVBInfo->CR89[pVBInfo->ram_type][1];
+       temp = 0;
        temp1 = temp & 0x03;
        temp2 |= temp1;
        xgifb_reg_set(P3d4, 0x89, temp2);
index 59423ad..ba5ea68 100644 (file)
@@ -40,9 +40,6 @@ void InitTo330Pointer(unsigned char ChipType, struct vb_device_info *pVBInfo)
        pVBInfo->SR15 = XGI340_SR13;
        pVBInfo->CR40 = XGI340_cr41;
        pVBInfo->CR6B = XGI340_CR6B;
-       pVBInfo->CR6E = XGI340_CR6E;
-       pVBInfo->CR6F = XGI340_CR6F;
-       pVBInfo->CR89 = XGI340_CR89;
        pVBInfo->AGPReg = XGI340_AGPReg;
        pVBInfo->SR16 = XGI340_SR16;
 
index e73ccd5..5926f74 100644 (file)
@@ -159,9 +159,6 @@ struct vb_device_info {
        unsigned long BaseAddr;
 
        unsigned char (*CR6B)[4];
-       unsigned char (*CR6E)[4];
-       unsigned char (*CR6F)[32];
-       unsigned char (*CR89)[2];
 
        unsigned char (*SR15)[8];
        unsigned char (*CR40)[8];
index c08c04e..6291a11 100644 (file)
@@ -114,12 +114,6 @@ static unsigned char XGI340_CR6B[8][4] = {
        {0x00, 0x00, 0x00, 0x00}
 };
 
-static unsigned char XGI340_CR6E[8][4];
-
-static unsigned char XGI340_CR6F[8][32];
-
-static unsigned char XGI340_CR89[8][2];
-
 /* CR47,CR48,CR49,CR4A,CR4B,CR4C,CR70,CR71,CR74,CR75,CR76,CR77 */
 static unsigned char XGI340_AGPReg[12] = {
        0x28, 0x23, 0x00, 0x20, 0x00, 0x20,