Commit | Line | Data |
---|---|---|
7217e0ca ML |
1 | --- a/hw/xfree86/common/xf86platformBus.c |
2 | +++ b/hw/xfree86/common/xf86platformBus.c | |
4db25562 | 3 | @@ -361,7 +361,7 @@ xf86platformProbeDev(DriverPtr drvp) |
7217e0ca ML |
4 | Bool foundScreen = FALSE; |
5 | GDevPtr *devList; | |
6 | const unsigned numDevs = xf86MatchDevice(drvp->driverName, &devList); | |
7 | - int i, j; | |
8 | + int i, j, flags; | |
9 | ||
10 | /* find the main device or any device specificed in xorg.conf */ | |
11 | for (i = 0; i < numDevs; i++) { | |
4db25562 | 12 | @@ -389,7 +389,11 @@ xf86platformProbeDev(DriverPtr drvp) |
7217e0ca ML |
13 | if (j == xf86_num_platform_devices) |
14 | continue; | |
15 | ||
16 | - foundScreen = probeSingleDevice(&xf86_platform_devices[j], drvp, devList[i], 0); | |
17 | + flags = 0; | |
18 | + if (!devList[i]->active) | |
19 | + flags |= PLATFORM_PROBE_GPU_SCREEN; | |
20 | + | |
21 | + foundScreen = probeSingleDevice(&xf86_platform_devices[j], drvp, devList[i], flags); | |
22 | if (!foundScreen) | |
23 | continue; | |
24 | } |