+++ ./hw/xfree86/common/xf86AutoConfig.c
@@ -294,7 +294,7 @@
     xf86PciMatchDriver(md);
 #endif
 
-#if defined(__linux__)
+#if defined(__linux__) && !defined(__ANDROID__)
     xf86AddMatchedDriver(md, "modesetting");
 #endif
 
