diff options
author | Dave Airlie <airlied@gmail.com> | 2012-08-21 21:01:43 +1000 |
---|---|---|
committer | Dave Airlie <airlied@gmail.com> | 2012-08-21 21:01:43 +1000 |
commit | aa9016576163b3065910437b6ea51a69f24a41ca (patch) | |
tree | 728f40cbf6983d25d9523f5eaa92f0ea2a5d1af4 /src | |
parent | bc04e9ed659be51a3c712f34a038bd60f639f9c5 (diff) |
cirrus: fix build against old server
Reported-by: jobermayer on irc
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/cir_driver.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cir_driver.c b/src/cir_driver.c index c8d5aae..2df4a2e 100644 --- a/src/cir_driver.c +++ b/src/cir_driver.c @@ -258,7 +258,11 @@ CIRProbe(DriverPtr drv, int flags) pPci->device_id, pPci->bus, pPci->domain, pPci->dev, pPci->func); xf86DrvMsg(0, X_ERROR, "cirrus: This driver cannot operate until it has been unloaded.\n"); +#if GET_ABI_MAJOR(ABI_VIDEODRV_VERSION) < 13 + xf86UnclaimPciSlot(pPci); +#else xf86UnclaimPciSlot(pPci, devSections[0]); +#endif free(devSections); return FALSE; } |