[PATCH 03/10] xfree86: bus: reuse already assigned variable when fb driver claimed

Tiago Vignatti tiago.vignatti at nokia.com
Fri May 7 05:43:58 PDT 2010


Signed-off-by: Tiago Vignatti <tiago.vignatti at nokia.com>
---
 hw/xfree86/common/xf86Bus.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/hw/xfree86/common/xf86Bus.c b/hw/xfree86/common/xf86Bus.c
index b87074b..0b10d7e 100644
--- a/hw/xfree86/common/xf86Bus.c
+++ b/hw/xfree86/common/xf86Bus.c
@@ -58,8 +58,6 @@ static int xf86EntityPrivateCount = 0;
 
 BusRec primaryBus = { BUS_NONE, { 0 } };
 
-static Bool doFramebufferMode = FALSE;
-
 /*
  * Call the bus probes relevant to the architecture.
  *
@@ -493,7 +491,6 @@ xf86PostProbe(void)
 	    return;
 	} else  {
 	    xf86Msg(X_INFO,"Running in FRAMEBUFFER Mode\n");
-	    doFramebufferMode = TRUE;
 
 	    return;
 	}
@@ -503,7 +500,7 @@ xf86PostProbe(void)
 void
 xf86PostScreenInit(void)
 {
-    if (doFramebufferMode) {
+    if (fbSlotClaimed) {
 	SetSIGIOForState(OPERATING);
 	return;
     }
-- 
1.6.0.4



More information about the xorg-devel mailing list