staging: xgifb: do not use pVBInfo->BaseAddr
authorAaro Koskinen <aaro.koskinen@iki.fi>
Mon, 21 Jan 2013 00:57:48 +0000 (02:57 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 Jan 2013 22:00:10 +0000 (14:00 -0800)
Use pre-calculated register addresses instead of pVBInfo->BaseAddr.

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

index e768ee124896a0d745d80e2eb0c769d8a61b823f..311541571757b63549f2afab0497568906bbd709 100644 (file)
@@ -1297,10 +1297,10 @@ unsigned char XGIInitNew(struct pci_dev *pdev)
                return 0;
        }
 
-       outb(0x67, (pVBInfo->BaseAddr + 0x12)); /* 3c2 <- 67 ,ynlai */
-
        XGIRegInit(pVBInfo, xgifb_info->vga_base);
 
+       outb(0x67, pVBInfo->P3c2);
+
        if (HwDeviceExtension->jChipType < XG20)
                /* Run XGI_GetVBType before InitTo330Pointer */
                XGI_GetVBType(pVBInfo);