aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'libkms/linux.c')
-rw-r--r--libkms/linux.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/libkms/linux.c b/libkms/linux.c
index 0b50777e..56205054 100644
--- a/libkms/linux.c
+++ b/libkms/linux.c
@@ -29,10 +29,6 @@
29 * going from fd to pci id via fstat and udev. 29 * going from fd to pci id via fstat and udev.
30 */ 30 */
31 31
32
33#ifdef HAVE_CONFIG_H
34#include "config.h"
35#endif
36#include <errno.h> 32#include <errno.h>
37#include <stdio.h> 33#include <stdio.h>
38#include <stdlib.h> 34#include <stdlib.h>
@@ -110,27 +106,27 @@ linux_from_sysfs(int fd, struct kms_driver **out)
110 if (ret) 106 if (ret)
111 return ret; 107 return ret;
112 108
113#ifdef HAVE_INTEL 109#if HAVE_INTEL
114 if (!strcmp(name, "intel")) 110 if (!strcmp(name, "intel"))
115 ret = intel_create(fd, out); 111 ret = intel_create(fd, out);
116 else 112 else
117#endif 113#endif
118#ifdef HAVE_VMWGFX 114#if HAVE_VMWGFX
119 if (!strcmp(name, "vmwgfx")) 115 if (!strcmp(name, "vmwgfx"))
120 ret = vmwgfx_create(fd, out); 116 ret = vmwgfx_create(fd, out);
121 else 117 else
122#endif 118#endif
123#ifdef HAVE_NOUVEAU 119#if HAVE_NOUVEAU
124 if (!strcmp(name, "nouveau")) 120 if (!strcmp(name, "nouveau"))
125 ret = nouveau_create(fd, out); 121 ret = nouveau_create(fd, out);
126 else 122 else
127#endif 123#endif
128#ifdef HAVE_RADEON 124#if HAVE_RADEON
129 if (!strcmp(name, "radeon")) 125 if (!strcmp(name, "radeon"))
130 ret = radeon_create(fd, out); 126 ret = radeon_create(fd, out);
131 else 127 else
132#endif 128#endif
133#ifdef HAVE_EXYNOS 129#if HAVE_EXYNOS
134 if (!strcmp(name, "exynos")) 130 if (!strcmp(name, "exynos"))
135 ret = exynos_create(fd, out); 131 ret = exynos_create(fd, out);
136 else 132 else