projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
910067d
)
[PATCH] Fix uninitialised spinlock in via-pmu-backlight code.
author
David Woodhouse
<
[email protected]
>
Fri, 29 Sep 2006 08:58:37 +0000
(
01:58
-0700)
committer
Linus Torvalds
<
[email protected]
>
Fri, 29 Sep 2006 16:18:03 +0000
(09:18 -0700)
The uninitialised pmu_backlight_lock causes the current Fedora test kernel
(which has spinlock debugging enabled) to panic on suspend.
This is suboptimal, so I fixed it.
Signed-off-by: David Woodhouse <
[email protected]
>
Acked-by: Benjamin Herrenschmidt <
[email protected]
>
Acked-by: Michael Hanselmann <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/macintosh/via-pmu-backlight.c
patch
|
blob
|
history
diff --git
a/drivers/macintosh/via-pmu-backlight.c
b/drivers/macintosh/via-pmu-backlight.c
index a82f313d9dc97681a8d7220d25d1faa5de6eceb0..6c29fe727c0f4ea7ee30d1daac58dc5efc309fc6 100644
(file)
--- a/
drivers/macintosh/via-pmu-backlight.c
+++ b/
drivers/macintosh/via-pmu-backlight.c
@@
-16,7
+16,7
@@
#define MAX_PMU_LEVEL 0xFF
static struct backlight_properties pmu_backlight_data;
-static
spinlock_t pmu_backlight_lock
;
+static
DEFINE_SPINLOCK(pmu_backlight_lock)
;
static int sleeping;
static u8 bl_curve[FB_BACKLIGHT_LEVELS];