Correct support for kernel <2.6.33

This commit is contained in:
Godzil 2012-09-10 20:12:13 +02:00
parent 9f496af46b
commit 3c0b0cdd4b

View File

@ -254,10 +254,11 @@ STATIC DECLARE_WAIT_QUEUE_HEAD (new_device_wait);
/* the list of valid devices, and sem to protect it */ /* the list of valid devices, and sem to protect it */
LIST_HEAD (fusd_devlist_head); LIST_HEAD (fusd_devlist_head);
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,30)
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,33)
DECLARE_MUTEX (fusd_devlist_sem); DECLARE_MUTEX (fusd_devlist_sem);
#else #else
DEFINE_SEMAPHORE (fusd_devlist_sem); DEFINE_SEMAPHORE (fusd_make devlist_sem);
#endif #endif
//#ifdef MODULE_LICENSE //#ifdef MODULE_LICENSE