summaryrefslogtreecommitdiff
path: root/drivers/dahdi/wctc4xxp/base.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/dahdi/wctc4xxp/base.c')
-rw-r--r--drivers/dahdi/wctc4xxp/base.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/drivers/dahdi/wctc4xxp/base.c b/drivers/dahdi/wctc4xxp/base.c
index 757d09d..5fcdabe 100644
--- a/drivers/dahdi/wctc4xxp/base.c
+++ b/drivers/dahdi/wctc4xxp/base.c
@@ -3375,13 +3375,17 @@ static struct pci_driver wctc4xxp_driver = {
static int __init wctc4xxp_init(void)
{
int res;
-# if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,23)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,23)
cmd_cache = kmem_cache_create(THIS_MODULE->name, sizeof(struct tcb), 0,
+#if LINUX_VERSION_CODE == KERNEL_VERSION(2,6,22)
+ SLAB_HWCACHE_ALIGN | SLAB_STORE_USER, NULL, NULL);
+#else
SLAB_HWCACHE_ALIGN, NULL, NULL);
-# else
+#endif
+#else
cmd_cache = kmem_cache_create(THIS_MODULE->name, sizeof(struct tcb), 0,
SLAB_HWCACHE_ALIGN, NULL);
-# endif
+#endif
if (!cmd_cache) {
return -ENOMEM;