aboutsummaryrefslogtreecommitdiff
path: root/linux-core/drm_compat.c
diff options
context:
space:
mode:
authorMichel Dänzer <michel@tungstengraphics.com>2007-02-15 09:26:16 +0100
committerMichel Dänzer <michel@tungstengraphics.com>2007-02-15 09:26:16 +0100
commit7803977aa9c3ca6360e6c22e77415cf17151cb9e (patch)
tree9cec9e1ded1027d7319472f6b30898c7de0425c0 /linux-core/drm_compat.c
parenta78f70faade8950ebb11ac8334c8c551f8e32b35 (diff)
Fix build against older kernels.
Diffstat (limited to 'linux-core/drm_compat.c')
-rw-r--r--linux-core/drm_compat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-core/drm_compat.c b/linux-core/drm_compat.c
index 3bb35997..4825f0c0 100644
--- a/linux-core/drm_compat.c
+++ b/linux-core/drm_compat.c
@@ -306,7 +306,7 @@ int drm_bo_map_bound(struct vm_area_struct *vma)
BUG_ON(ret);
if (bus_size) {
- drm_mem_type_manager_t *man = &dev->bm.man[bo->mem.mem_type];
+ drm_mem_type_manager_t *man = &bo->dev->bm.man[bo->mem.mem_type];
unsigned long pfn = (bus_base + bus_offset) >> PAGE_SHIFT;
pgprot_t pgprot = drm_io_prot(man->drm_bus_maptype, vma);
ret = io_remap_pfn_range(vma, vma->vm_start, pfn,