diff options
author | Dave Airlie <airlied@redhat.com> | 2012-06-14 15:21:51 +0100 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-06-14 15:36:08 +0100 |
commit | e56d0da49fa320661e8320f47905cf9a0e2f96e2 (patch) | |
tree | b3dd4f65d68fd8864796f5e7350aa422c4b34aa0 | |
parent | 0698e3fd1928eab57b706fdd1ae50524f3155db7 (diff) |
xf86: load modesetting driver on Linux hotplugrandr-provider
This driver is currently really the only choice for a hotplug
at the moment, we can refine this in the future to try and
pick the driver names.
We have to reload this as it can get unloaded it not used
in the original probe.
Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r-- | hw/xfree86/os-support/linux/lnx_platform.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/xfree86/os-support/linux/lnx_platform.c b/hw/xfree86/os-support/linux/lnx_platform.c index 76f5583dd..56887a1e4 100644 --- a/hw/xfree86/os-support/linux/lnx_platform.c +++ b/hw/xfree86/os-support/linux/lnx_platform.c @@ -138,6 +138,9 @@ void NewGPUDeviceRequest(struct OdevAttributes *attribs) if (old_num == xf86_num_platform_devices) return; + /* force load the modesetting driver for now */ + xf86LoadOneModule("modesetting", NULL); + ret = xf86platformAddDevice(xf86_num_platform_devices-1); if (ret == -1) xf86_remove_platform_device(xf86_num_platform_devices-1); |