From 9918d6f69ac51d9d27b074e3e490783acda68dca Mon Sep 17 00:00:00 2001 From: "Y.C. Chen" Date: Fri, 14 Aug 2015 10:11:23 +0800 Subject: Fixed Failed to Init when ASPEED Graphics is Secondary --- src/ast_driver.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/ast_driver.c b/src/ast_driver.c index be1ac0f..b9631d4 100644 --- a/src/ast_driver.c +++ b/src/ast_driver.c @@ -623,15 +623,6 @@ ASTPreInit(ScrnInfoPtr pScrn, int flags) /* Enable VGA MMIO Access */ vASTEnableVGAMMIO(pScrn); - /* Init VGA Adapter */ - if (!xf86IsPrimaryPci(pAST->PciInfo)) - { - ASTInitVGA(pScrn, 0); - } - - vASTOpenKey(pScrn); - bASTRegInit(pScrn); - /* Get Chip Type */ if (PCI_DEV_REVISION(pAST->PciInfo) >= 0x30) pAST->jChipType = AST2400; @@ -642,6 +633,15 @@ ASTPreInit(ScrnInfoPtr pScrn, int flags) else pAST->jChipType = AST2000; + /* Init VGA Adapter */ + if (!xf86IsPrimaryPci(pAST->PciInfo)) + { + ASTInitVGA(pScrn, 0); + } + + vASTOpenKey(pScrn); + bASTRegInit(pScrn); + /* Get Options from Scratch */ ASTGetScratchOptions(pScrn); -- cgit v1.2.3