Skip to contentSkip to conversation

compat: fix LED lock

PATCH New Johannes Berg 1 participant 1 message Aug 12, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 compat: fix LED lock

The led_lock is never initialised, so there
are warnings/errors. It can also be made
static.

---
 compat/compat-2.6.37.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
compat/compat-2.6.37.c +1 -1
index a62b13f..257880e 100644
@@ -158,7 +158,7 @@ EXPORT_SYMBOL(compat_genl_unregister_family);
 #undef led_brightness_set
 #undef led_classdev_unregister
 
-spinlock_t led_lock;
+static DEFINE_SPINLOCK(led_lock);
 static LIST_HEAD(led_timers);
 
 struct led_timer {