diff options
author | Christoph Hellwig <hch@lst.de> | 2007-01-08 05:56:59 -0500 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2007-02-07 21:24:26 -0500 |
commit | 004a7727421fd202bbdfcc0231a3359085199a52 (patch) | |
tree | 74da2f5eb50095cf7b5388ee05a26328a5519e1b /drivers/char/drm/drm_memory.h | |
parent | b9094d3aaa9550e740b6fd12b68f485d9979ce27 (diff) |
drm: remove drm_ioremap and drm_ioremapfree
hch originally submitted this for paravirt ops work, airlied took it
and cleaned up a lot of unused code caused by using this.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Airlie <airlied@linux.ie>
Diffstat (limited to 'drivers/char/drm/drm_memory.h')
-rw-r--r-- | drivers/char/drm/drm_memory.h | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/drivers/char/drm/drm_memory.h b/drivers/char/drm/drm_memory.h index f1b97aff10cf..63e425b5ea82 100644 --- a/drivers/char/drm/drm_memory.h +++ b/drivers/char/drm/drm_memory.h | |||
@@ -56,26 +56,6 @@ | |||
56 | # endif | 56 | # endif |
57 | #endif | 57 | #endif |
58 | 58 | ||
59 | static inline unsigned long drm_follow_page(void *vaddr) | ||
60 | { | ||
61 | pgd_t *pgd = pgd_offset_k((unsigned long)vaddr); | ||
62 | pud_t *pud = pud_offset(pgd, (unsigned long)vaddr); | ||
63 | pmd_t *pmd = pmd_offset(pud, (unsigned long)vaddr); | ||
64 | pte_t *ptep = pte_offset_kernel(pmd, (unsigned long)vaddr); | ||
65 | return pte_pfn(*ptep) << PAGE_SHIFT; | ||
66 | } | ||
67 | |||
68 | #else /* __OS_HAS_AGP */ | 59 | #else /* __OS_HAS_AGP */ |
69 | 60 | ||
70 | static inline unsigned long drm_follow_page(void *vaddr) | ||
71 | { | ||
72 | return 0; | ||
73 | } | ||
74 | |||
75 | #endif | 61 | #endif |
76 | |||
77 | void *drm_ioremap(unsigned long offset, unsigned long size, | ||
78 | drm_device_t * dev); | ||
79 | |||
80 | void drm_ioremapfree(void *pt, unsigned long size, | ||
81 | drm_device_t * dev); | ||