1674N/A--- a/src/ast_driver.c 2016-10-19 19:32:32.586151260 -0700
1674N/A+++ b/src/ast_driver.c 2016-10-19 19:36:20.008810060 -0700
1674N/A@@ -665,7 +665,16 @@
1674N/A /* Enable VGA MMIO Access */
1674N/A vASTEnableVGAMMIO(pScrn);
1674N/A #endif
1674N/A+ /* Init VGA Adapter */
1674N/A+ if (!xf86IsPrimaryPci(pAST->PciInfo))
1674N/A+ {
1674N/A+ ASTInitVGA(pScrn, 0);
1674N/A+ }
1674N/A
1674N/A+ vASTOpenKey(pScrn);
1674N/A+ bASTRegInit(pScrn);
1674N/A+
1674N/A+
1674N/A /* Get Chip Type */
1674N/A if (PCI_DEV_REVISION(pAST->PciInfo) >= 0x40)
1674N/A pAST->jChipType = AST2500;
1674N/A@@ -678,15 +687,6 @@
1674N/A else
1674N/A pAST->jChipType = AST2000;
1674N/A
1674N/A- /* Init VGA Adapter */
1674N/A- if (!xf86IsPrimaryPci(pAST->PciInfo))
1674N/A- {
1674N/A- ASTInitVGA(pScrn, 0);
1674N/A- }
1674N/A-
1674N/A- vASTOpenKey(pScrn);
1674N/A- bASTRegInit(pScrn);
1674N/A-
1674N/A /* Get Options from Scratch */
1674N/A ASTGetScratchOptions(pScrn);
1674N/A