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>
This commit is contained in:
parent
964f29bb80
commit
2f7d630a1e
|
@ -58,8 +58,6 @@ static int xf86EntityPrivateCount = 0;
|
||||||
|
|
||||||
BusRec primaryBus = { BUS_NONE, { 0 } };
|
BusRec primaryBus = { BUS_NONE, { 0 } };
|
||||||
|
|
||||||
static Bool doFramebufferMode = FALSE;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Call the bus probes relevant to the architecture.
|
* Call the bus probes relevant to the architecture.
|
||||||
*
|
*
|
||||||
|
@ -493,7 +491,6 @@ xf86PostProbe(void)
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
xf86Msg(X_INFO,"Running in FRAMEBUFFER Mode\n");
|
xf86Msg(X_INFO,"Running in FRAMEBUFFER Mode\n");
|
||||||
doFramebufferMode = TRUE;
|
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -503,7 +500,7 @@ xf86PostProbe(void)
|
||||||
void
|
void
|
||||||
xf86PostScreenInit(void)
|
xf86PostScreenInit(void)
|
||||||
{
|
{
|
||||||
if (doFramebufferMode) {
|
if (fbSlotClaimed) {
|
||||||
SetSIGIOForState(OPERATING);
|
SetSIGIOForState(OPERATING);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user