From 3e0f3c1fbb9b10bcc8e037f79f25d5e491dcfd91 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Thu, 8 Apr 2004 12:20:39 +0000 Subject: more 2.4 compat fns --- linux-core/drmP.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'linux-core/drmP.h') diff --git a/linux-core/drmP.h b/linux-core/drmP.h index e35e60b3..ac54abb5 100644 --- a/linux-core/drmP.h +++ b/linux-core/drmP.h @@ -235,6 +235,16 @@ static inline struct page * vmalloc_to_page(void * vmalloc_addr) } #endif +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0) +static inline unsigned iminor(struct inode *inode) +{ + return MINOR(inode->i_rdev); +} + +#define old_encode_dev(x) (x) + +#endif + #ifndef REMAP_PAGE_RANGE_5_ARGS #define DRM_RPR_ARG(vma) #else -- cgit v1.2.3