Commit b8e1cc5c authored by Aaro Koskinen's avatar Aaro Koskinen Committed by Greg Kroah-Hartman

staging: xgifb: do not use pVBInfo->BaseAddr

Use pre-calculated register addresses instead of pVBInfo->BaseAddr.
Signed-off-by: default avatarAaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 56810a92
...@@ -1297,10 +1297,10 @@ unsigned char XGIInitNew(struct pci_dev *pdev) ...@@ -1297,10 +1297,10 @@ unsigned char XGIInitNew(struct pci_dev *pdev)
return 0; return 0;
} }
outb(0x67, (pVBInfo->BaseAddr + 0x12)); /* 3c2 <- 67 ,ynlai */
XGIRegInit(pVBInfo, xgifb_info->vga_base); XGIRegInit(pVBInfo, xgifb_info->vga_base);
outb(0x67, pVBInfo->P3c2);
if (HwDeviceExtension->jChipType < XG20) if (HwDeviceExtension->jChipType < XG20)
/* Run XGI_GetVBType before InitTo330Pointer */ /* Run XGI_GetVBType before InitTo330Pointer */
XGI_GetVBType(pVBInfo); XGI_GetVBType(pVBInfo);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment