projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] sysctl: frv: remove unnecessary insert_at_head flag
[powerpc.git]
/
drivers
/
macintosh
/
via-pmu-backlight.c
diff --git
a/drivers/macintosh/via-pmu-backlight.c
b/drivers/macintosh/via-pmu-backlight.c
index
a82f313
..
801a974
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;
#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];
static int sleeping;
static u8 bl_curve[FB_BACKLIGHT_LEVELS];
@@
-147,7
+147,7
@@
void __init pmu_backlight_init()
snprintf(name, sizeof(name), "pmubl");
snprintf(name, sizeof(name), "pmubl");
- bd = backlight_device_register(name, NULL, &pmu_backlight_data);
+ bd = backlight_device_register(name, NULL,
NULL,
&pmu_backlight_data);
if (IS_ERR(bd)) {
printk("pmubl: Backlight registration failed\n");
goto error;
if (IS_ERR(bd)) {
printk("pmubl: Backlight registration failed\n");
goto error;