-diff --git a/hw/xfree86/common/xf86AutoConfig.c b/hw/xfree86/common/xf86AutoConfig.c
-index 55412b4..d4a95d2 100644
--- a/hw/xfree86/common/xf86AutoConfig.c
+++ b/hw/xfree86/common/xf86AutoConfig.c
@@ -45,6 +45,12 @@
static void
listPossibleVideoDrivers(char *matches[], int nmatches)
{
-@@ -287,6 +314,21 @@ listPossibleVideoDrivers(char *matches[], int nmatches)
+@@ -279,6 +306,21 @@ listPossibleVideoDrivers(char *matches[]
+ i = xf86PciMatchDriver(matches, nmatches);
#endif
- }
+#if defined(__linux__) && defined(__arm__)
+ if (i < (nmatches - 1)) {
#if defined(__linux__)
matches[i++] = xnfstrdup("modesetting");
#endif
-diff --git a/hw/xfree86/common/xf86platformBus.c b/hw/xfree86/common/xf86platformBus.c
-index 24b9473..0061c25 100644
--- a/hw/xfree86/common/xf86platformBus.c
+++ b/hw/xfree86/common/xf86platformBus.c
-@@ -362,6 +362,14 @@ xf86platformProbeDev(DriverPtr drvp)
+@@ -372,6 +372,14 @@ xf86platformProbeDev(DriverPtr drvp)
if (xf86IsPrimaryPlatform(&xf86_platform_devices[j]))
break;
}