diff options
author | Dave Airlie <airlied@redhat.com> | 2012-09-10 15:31:06 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-09-10 15:31:06 +1000 |
commit | 646ffd49d2cf0d3130301e8ad2f49f620bd9ef1b (patch) | |
tree | 9a1b7adfd847c2623cf6ce153ae4b8804446955c /src/radeon_kms.c | |
parent | 7c7f2775604da61537c24c249884aaa220e06e13 (diff) |
radeon: fix build against old servers
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=54711
Reported-by: wolput@onsneteindhoven.nl
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src/radeon_kms.c')
-rw-r--r-- | src/radeon_kms.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/radeon_kms.c b/src/radeon_kms.c index 94aa19c4..2842a235 100644 --- a/src/radeon_kms.c +++ b/src/radeon_kms.c @@ -954,7 +954,11 @@ Bool RADEONPreInit_KMS(ScrnInfoPtr pScrn, int flags) if (!xf86LoadSubModule(pScrn, "ramdac")) return FALSE; } - if (!pScrn->is_gpu && pScrn->modes == NULL) { + if (pScrn->modes == NULL +#ifdef XSERVER_PLATFORM_BUS + && !pScrn->is_gpu +#endif + ) { xf86DrvMsg(pScrn->scrnIndex, X_ERROR, "No modes.\n"); goto fail; } |