intel_extreme: only access ports pipe if it has one assigned.
This commit is contained in:
@@ -163,6 +163,11 @@ Port::SetPipe(Pipe* pipe)
|
|||||||
status_t
|
status_t
|
||||||
Port::Power(bool enabled)
|
Port::Power(bool enabled)
|
||||||
{
|
{
|
||||||
|
if (fPipe == NULL) {
|
||||||
|
ERROR("%s: Setting power mode without assigned pipe!\n", __func__);
|
||||||
|
return B_ERROR;
|
||||||
|
}
|
||||||
|
|
||||||
fPipe->Enable(enabled);
|
fPipe->Enable(enabled);
|
||||||
|
|
||||||
return B_OK;
|
return B_OK;
|
||||||
|
|||||||
@@ -32,6 +32,8 @@ enable_all_pipes(bool enable)
|
|||||||
continue;
|
continue;
|
||||||
if (!gInfo->ports[i]->IsConnected())
|
if (!gInfo->ports[i]->IsConnected())
|
||||||
continue;
|
continue;
|
||||||
|
if (gInfo->ports[i]->GetPipe() == NULL)
|
||||||
|
continue;
|
||||||
|
|
||||||
gInfo->ports[i]->Power(enable);
|
gInfo->ports[i]->Power(enable);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user