DORMANTno replies

[PATCH] compat: fix LED lock

From: Johannes Berg <johannes@sipsolutions.net>
Date: 2011-08-12 18:23:11
Subsystem: the rest · Maintainer: Linus Torvalds

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

Signed-off-by: Johannes Berg <redacted>
---
 compat/compat-2.6.37.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/compat/compat-2.6.37.c b/compat/compat-2.6.37.c
index a62b13f..257880e 100644
--- a/compat/compat-2.6.37.c
+++ b/compat/compat-2.6.37.c
@@ -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 {

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help