]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/linux/leds.h
leds: Fix led trigger locking bugs
[linux-2.6-omap-h63xx.git] / include / linux / leds.h
index dc1178f6184b1480da56a11eeba46bc0f2cc2b14..b4130ff58d0c1be1543c21281e7189a7383834a5 100644 (file)
@@ -14,6 +14,7 @@
 
 #include <linux/list.h>
 #include <linux/spinlock.h>
+#include <linux/rwsem.h>
 
 struct device;
 /*
@@ -43,7 +44,7 @@ struct led_classdev {
 
 #ifdef CONFIG_LEDS_TRIGGERS
        /* Protects the trigger data below */
-       rwlock_t                 trigger_lock;
+       struct rw_semaphore      trigger_lock;
 
        struct led_trigger      *trigger;
        struct list_head         trig_list;