summaryrefslogtreecommitdiff
path: root/src/radeon_kms.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2012-09-03 12:37:22 +1000
committerDave Airlie <airlied@redhat.com>2012-09-03 12:45:24 +1000
commitf71139a2afe8fffb628331402bf829a6d67c9fff (patch)
tree5ad832183d8351ad4c8d8280790843f5d21a5b23 /src/radeon_kms.c
parent9911e72ea79e000ee0492d19a434aa98b83b5066 (diff)
radeon: add platform bus loading support.
This allows the radeon driver to be loaded via the platform bus mechanism. Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src/radeon_kms.c')
-rw-r--r--src/radeon_kms.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/radeon_kms.c b/src/radeon_kms.c
index a4f46d79..21076408 100644
--- a/src/radeon_kms.c
+++ b/src/radeon_kms.c
@@ -698,7 +698,12 @@ Bool RADEONPreInit_KMS(ScrnInfoPtr pScrn, int flags)
info->IsSecondary = FALSE;
info->IsPrimary = FALSE;
info->pEnt = xf86GetEntityInfo(pScrn->entityList[pScrn->numEntities - 1]);
- if (info->pEnt->location.type != BUS_PCI) goto fail;
+ if (info->pEnt->location.type != BUS_PCI
+#ifdef XSERVER_PLATFORM_BUS
+ && info->pEnt->location.type != BUS_PLATFORM
+#endif
+ )
+ goto fail;
pPriv = xf86GetEntityPrivate(pScrn->entityList[0],
getRADEONEntityIndex());