Browse Source

Correct support for kernel <2.6.33

Godzil 11 years ago
parent
commit
3c0b0cdd4b
1 changed files with 3 additions and 2 deletions
  1. 3 2
      kfusd/kfusd.c

+ 3 - 2
kfusd/kfusd.c

@@ -254,10 +254,11 @@ STATIC DECLARE_WAIT_QUEUE_HEAD (new_device_wait);
 
 /* the list of valid devices, and sem to protect it */
 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);
 #else
-DEFINE_SEMAPHORE (fusd_devlist_sem);
+DEFINE_SEMAPHORE (fusd_make devlist_sem);
 #endif
 
 //#ifdef MODULE_LICENSE