summaryrefslogtreecommitdiff
path: root/shared-core
diff options
context:
space:
mode:
authorPatrice Mandin <pmandin@caramail.com>2007-08-19 18:41:18 +0200
committerPatrice Mandin <pmandin@caramail.com>2007-08-19 18:41:18 +0200
commita122e7dabfaade751e8f6bb6d1488902fd36a40e (patch)
tree5f3852743724019820d0bdf3708ebf28a31127a9 /shared-core
parent8a4d7f34d9c0182c466518c6f413d9a039db402d (diff)
Function pci_get_bus_and_slot needs 2.6.19 or later
Diffstat (limited to 'shared-core')
-rw-r--r--shared-core/nouveau_mem.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/shared-core/nouveau_mem.c b/shared-core/nouveau_mem.c
index 30345797..3c294e4b 100644
--- a/shared-core/nouveau_mem.c
+++ b/shared-core/nouveau_mem.c
@@ -223,6 +223,7 @@ void nouveau_mem_close(struct drm_device *dev)
static uint32_t
nouveau_mem_fb_amount_igp(struct drm_device *dev)
{
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,19)
struct drm_nouveau_private *dev_priv = dev->dev_private;
struct pci_dev *bridge;
uint32_t mem;
@@ -243,6 +244,10 @@ nouveau_mem_fb_amount_igp(struct drm_device *dev)
}
DRM_ERROR("impossible!\n");
+#else
+ DRM_ERROR("Linux kernel >= 2.6.19 required to check for igp memory amount\n");
+#endif
+
return 0;
}