compat-wireless-2010-03-10
[pandora-wifi.git] / include / linux / compat-2.6.19.h
1 #ifndef LINUX_26_19_COMPAT_H
2 #define LINUX_26_19_COMPAT_H
3
4 #include <linux/version.h>
5
6 /* Compat work for 2.6.19 */
7 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,19))
8
9 #include <linux/slab.h>
10
11 static inline int
12 compat_kmem_cache_destroy(struct kmem_cache *cachep)
13 {
14 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19))
15         return kmem_cache_destroy(cachep);
16 #else
17         kmem_cache_destroy(cachep);
18         return 0;
19 #endif
20 }
21
22 #endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19)) */
23
24 #endif /* LINUX_26_19_COMPAT_H */