summaryrefslogtreecommitdiff
path: root/src/radeon_probe.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2009-07-02 17:18:47 +1000
committerDave Airlie <airlied@redhat.com>2009-07-02 17:18:47 +1000
commite1b9cb9ea665eaa84e64a386299efa0819d55df4 (patch)
tree080ebaffb749a5338d102fdf6c9fb0a46c2a45c7 /src/radeon_probe.c
parentde427fac6912a625f7e4d8b982a1f7a1ba80dfbe (diff)
radeon: fix compile without kms
Diffstat (limited to 'src/radeon_probe.c')
-rw-r--r--src/radeon_probe.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/radeon_probe.c b/src/radeon_probe.c
index 38fe0b04..4f7d4946 100644
--- a/src/radeon_probe.c
+++ b/src/radeon_probe.c
@@ -135,6 +135,7 @@ radeon_get_scrninfo(int entity_num, void *pci_dev)
pScrn->Probe = RADEONProbe;
#endif
+#ifdef XF86DRM_MODE
if (kms == 1) {
pScrn->PreInit = RADEONPreInit_KMS;
pScrn->ScreenInit = RADEONScreenInit_KMS;
@@ -144,7 +145,8 @@ radeon_get_scrninfo(int entity_num, void *pci_dev)
pScrn->LeaveVT = RADEONLeaveVT_KMS;
pScrn->FreeScreen = RADEONFreeScreen_KMS;
pScrn->ValidMode = RADEONValidMode;
- } else {
+ } else
+#endif {
pScrn->PreInit = RADEONPreInit;
pScrn->ScreenInit = RADEONScreenInit;
pScrn->SwitchMode = RADEONSwitchMode;