xfree86: Allow non-PCI devices as primary

On platforms that don't support PCI or have no GPU attached to the PCI
bus, there can still be a primary device on a non-PCI bus.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Reviewed-by: Rob Clark <robdclark@gmail.com>
Tested-by: Rob Clark <robdclark@gmail.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
Thierry Reding 2014-02-13 13:36:12 +01:00 committed by Keith Packard
parent 2f0183222b
commit 5d133276de

View File

@ -435,10 +435,9 @@ xf86platformProbeDev(DriverPtr drvp)
/* for non-seat0 servers assume first device is the master */ /* for non-seat0 servers assume first device is the master */
if (ServerIsNotSeat0()) if (ServerIsNotSeat0())
break; break;
if (xf86_platform_devices[j].pdev) {
if (xf86IsPrimaryPlatform(&xf86_platform_devices[j])) if (xf86IsPrimaryPlatform(&xf86_platform_devices[j]))
break; break;
}
} }
} }