diff options
author | Maarten Maathuis <madman2003@gmail.com> | 2008-08-17 00:41:50 +0200 |
---|---|---|
committer | Maarten Maathuis <madman2003@gmail.com> | 2008-08-17 00:41:50 +0200 |
commit | a5381cac55e54a535acf752970886b659948563c (patch) | |
tree | 0c3d5b8980cc1b67d740e31f03458c0b2f7c8d96 /shared-core/nouveau_object.c | |
parent | ba840fca19077d352277519c5fa032e3b107ae27 (diff) |
nouveau: make it compile under 2.6.27
Diffstat (limited to 'shared-core/nouveau_object.c')
-rw-r--r-- | shared-core/nouveau_object.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/shared-core/nouveau_object.c b/shared-core/nouveau_object.c index 894e7336..07b5a397 100644 --- a/shared-core/nouveau_object.c +++ b/shared-core/nouveau_object.c @@ -739,7 +739,12 @@ nouveau_gpuobj_dma_new(struct nouveau_channel *chan, int class, PAGE_SIZE, DMA_BIDIRECTIONAL); +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,27)) + /* Not a 100% sure this is the right kdev in all cases. */ + if (dma_mapping_error(&dev->primary->kdev, dev->sg->busaddr[idx])) { +#else if (dma_mapping_error(dev->sg->busaddr[idx])) { +#endif return -ENOMEM; } } |