]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/leds/led-core.c
Merge branch 'for-2.6.28' of git://linux-nfs.org/~bfields/linux
[linux-2.6-omap-h63xx.git] / drivers / leds / led-core.c
index 9b015f9af351e49526eb52ec0f0c09b4acb21e56..016d19f5486f2bd7cf9ea93df863f7d5c8a8cd1a 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"
 
-DEFINE_RWLOCK(leds_list_lock);
-LIST_HEAD(leds_list);
+DECLARE_RWSEM(leds_list_lock);
+EXPORT_SYMBOL_GPL(leds_list_lock);
 
+LIST_HEAD(leds_list);
 EXPORT_SYMBOL_GPL(leds_list);
-EXPORT_SYMBOL_GPL(leds_list_lock);