Skip to content

Commit

Permalink
staging: xgifb: do not use pVBInfo->BaseAddr
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Aaro Koskinen authored and Greg Kroah-Hartman committed Jan 21, 2013
1 parent 56810a9 commit b8e1cc5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/staging/xgifb/vb_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b8e1cc5

Please sign in to comment.