summaryrefslogtreecommitdiff
path: root/tests/modehotplug
diff options
context:
space:
mode:
Diffstat (limited to 'tests/modehotplug')
-rw-r--r--tests/modehotplug/demo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/modehotplug/demo.c b/tests/modehotplug/demo.c
index 1518e84c..4ef2e386 100644
--- a/tests/modehotplug/demo.c
+++ b/tests/modehotplug/demo.c
@@ -123,7 +123,7 @@ struct demo_driver* demoCreateDriver(void)
memset(driver, 0, sizeof(struct demo_driver));
- driver->fd = drmOpenControl(0);
+ driver->fd = drmOpen("i915", NULL);
if (driver->fd < 0) {
printf("Failed to open the card fb\n");