intel_extreme: init port_count always (typo fix).
This commit is contained in:
@@ -246,9 +246,10 @@ probe_ports()
|
|||||||
bool foundDP = false;
|
bool foundDP = false;
|
||||||
bool foundDDI = false;
|
bool foundDDI = false;
|
||||||
|
|
||||||
|
gInfo->port_count = 0;
|
||||||
|
|
||||||
// Display Port
|
// Display Port
|
||||||
if (!gInfo->shared_info->device_type.HasDDI()) {
|
if (!gInfo->shared_info->device_type.HasDDI()) {
|
||||||
gInfo->port_count = 0;
|
|
||||||
for (int i = INTEL_PORT_A; i <= INTEL_PORT_D; i++) {
|
for (int i = INTEL_PORT_A; i <= INTEL_PORT_D; i++) {
|
||||||
TRACE("Probing DisplayPort %d\n", i);
|
TRACE("Probing DisplayPort %d\n", i);
|
||||||
Port* displayPort = new(std::nothrow) DisplayPort((port_index)i);
|
Port* displayPort = new(std::nothrow) DisplayPort((port_index)i);
|
||||||
|
|||||||
Reference in New Issue
Block a user