equal
deleted
inserted
replaced
30 #include <linux/version.h> |
30 #include <linux/version.h> |
31 #include <linux/module.h> |
31 #include <linux/module.h> |
32 #include <linux/timer.h> |
32 #include <linux/timer.h> |
33 #include <linux/interrupt.h> |
33 #include <linux/interrupt.h> |
34 #include <linux/err.h> |
34 #include <linux/err.h> |
|
35 |
|
36 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 34) |
|
37 #include <linux/slab.h> |
|
38 #endif |
35 |
39 |
36 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27) |
40 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27) |
37 #include <linux/semaphore.h> |
41 #include <linux/semaphore.h> |
38 #else |
42 #else |
39 #include <asm/semaphore.h> |
43 #include <asm/semaphore.h> |