summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiago Vignatti <tiago.vignatti@nokia.com>2010-05-02 20:29:11 +0300
committerTiago Vignatti <tiago.vignatti@nokia.com>2010-05-19 18:33:57 +0300
commit2f7d630a1ee446711288af69711d57ea3054b594 (patch)
tree3c8cedc392ed96efb3aa70b8c79b98ab694aac18
parent964f29bb80c1bb05508a27969c3ac34cbf072ee9 (diff)
xfree86: bus: reuse already assigned variable when fb driver claimed
Signed-off-by: Tiago Vignatti <tiago.vignatti@nokia.com> Reviewed-by: Adam Jackson <ajax@redhat.com>
-rw-r--r--hw/xfree86/common/xf86Bus.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/hw/xfree86/common/xf86Bus.c b/hw/xfree86/common/xf86Bus.c
index 4013a6799..a4df1f240 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;
}