diff options
author | Patrice Mandin <pmandin@caramail.com> | 2007-08-19 18:41:18 +0200 |
---|---|---|
committer | Patrice Mandin <pmandin@caramail.com> | 2007-08-19 18:41:18 +0200 |
commit | a122e7dabfaade751e8f6bb6d1488902fd36a40e (patch) | |
tree | 5f3852743724019820d0bdf3708ebf28a31127a9 /shared-core | |
parent | 8a4d7f34d9c0182c466518c6f413d9a039db402d (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.c | 5 |
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; } |