aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAaro Koskinen <aaro.koskinen@iki.fi>2013-01-20 19:57:48 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-01-21 17:00:10 -0500
commitb8e1cc5c8dec9df1b70ca8ec4f081dc31ef69667 (patch)
tree3965abc27e67058d6d4c3cfe91fbeda0cd6a2fb2 /drivers
parent56810a92c689c64d586a51a1078c5d307b24e8eb (diff)
staging: xgifb: do not use pVBInfo->BaseAddr
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/xgifb/vb_init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/xgifb/vb_init.c b/drivers/staging/xgifb/vb_init.c
index e768ee124896..311541571757 100644
--- a/drivers/staging/xgifb/vb_init.c
+++ b/drivers/staging/xgifb/vb_init.c
@@ -1297,10 +1297,10 @@ unsigned char XGIInitNew(struct pci_dev *pdev)
1297 return 0; 1297 return 0;
1298 } 1298 }
1299 1299
1300 outb(0x67, (pVBInfo->BaseAddr + 0x12)); /* 3c2 <- 67 ,ynlai */
1301
1302 XGIRegInit(pVBInfo, xgifb_info->vga_base); 1300 XGIRegInit(pVBInfo, xgifb_info->vga_base);
1303 1301
1302 outb(0x67, pVBInfo->P3c2);
1303
1304 if (HwDeviceExtension->jChipType < XG20) 1304 if (HwDeviceExtension->jChipType < XG20)
1305 /* Run XGI_GetVBType before InitTo330Pointer */ 1305 /* Run XGI_GetVBType before InitTo330Pointer */
1306 XGI_GetVBType(pVBInfo); 1306 XGI_GetVBType(pVBInfo);