summaryrefslogtreecommitdiff
path: root/tests/modefb
diff options
context:
space:
mode:
Diffstat (limited to 'tests/modefb')
-rw-r--r--tests/modefb/demo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/modefb/demo.c b/tests/modefb/demo.c
index 7fa3b93f..4d81e511 100644
--- a/tests/modefb/demo.c
+++ b/tests/modefb/demo.c
@@ -26,7 +26,7 @@ int main(int argc, char **argv)
char name[100];
int i,d;
int fd;
- int drmfd = drmOpenControl(0);
+ int drmfd = drmOpen("i915", NULL);
/* try four devices */
for (d = 0; d < 4; d++) {