X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=drivers%2Fleds%2Fled-triggers.c;h=47f0ff196328d2808268a17701444b08faafee1a;hb=0a4254058037eb172758961d0a5b94f4320a1425;hp=5e2cd8be1191b99c44f3cb573d6bce3487b0155c;hpb=b3899c6613160b18f79e4356184de55311302fe4;p=linux-2.6 diff --git a/drivers/leds/led-triggers.c b/drivers/leds/led-triggers.c index 5e2cd8be11..47f0ff1963 100644 --- a/drivers/leds/led-triggers.c +++ b/drivers/leds/led-triggers.c @@ -11,7 +11,6 @@ * */ -#include #include #include #include @@ -26,7 +25,7 @@ /* * Nests outside led_cdev->trigger_lock */ -static rwlock_t triggers_list_lock = RW_LOCK_UNLOCKED; +static DEFINE_RWLOCK(triggers_list_lock); static LIST_HEAD(trigger_list); ssize_t led_trigger_store(struct class_device *dev, const char *buf,