staging/xgifb: simplify vga I/O ports handling
[cascardo/linux.git] / drivers / staging / xgifb / vb_init.c
index 94d5c35..a951ca4 100644 (file)
@@ -1478,7 +1478,7 @@ unsigned char XGIInitNew(struct pci_dev *pdev)
 
        pVBInfo->FBAddr = HwDeviceExtension->pjVideoMemoryAddress;
 
-       pVBInfo->BaseAddr = (unsigned long) HwDeviceExtension->pjIOAddress;
+       pVBInfo->BaseAddr = xgifb_info->vga_base;
 
        /* Newdebugcode(0x99); */