[SCSI] qla2xxx: Wakeup DPC thread to process any deferred-work requests.
[sfrench/cifs-2.6.git] / drivers / leds / led-core.c
index fe6541326c717fb996cb591aebb5a1bbc2107569..5d1ca10524b6933bc216fb282815ac6f348cc9d0 100644 (file)
 #include <linux/kernel.h>
 #include <linux/list.h>
 #include <linux/module.h>
-#include <linux/spinlock.h>
+#include <linux/rwsem.h>
 #include <linux/leds.h>
 #include "leds.h"
 
-rwlock_t leds_list_lock = RW_LOCK_UNLOCKED;
+DECLARE_RWSEM(leds_list_lock);
 LIST_HEAD(leds_list);
 
 EXPORT_SYMBOL_GPL(leds_list);