summaryrefslogtreecommitdiff
path: root/hw/xfree86/common/xf86platformBus.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/xfree86/common/xf86platformBus.c')
-rw-r--r--hw/xfree86/common/xf86platformBus.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/xfree86/common/xf86platformBus.c b/hw/xfree86/common/xf86platformBus.c
index f1e942378..96895a6e1 100644
--- a/hw/xfree86/common/xf86platformBus.c
+++ b/hw/xfree86/common/xf86platformBus.c
@@ -477,6 +477,9 @@ xf86platformAddDevice(int index)
screenLayoutPtr layout;
static const char *hotplug_driver_name = "modesetting";
+ if (!xf86Info.autoAddGPU)
+ return -1;
+
/* force load the driver for now */
xf86LoadOneModule(hotplug_driver_name, NULL);