backlight: Fix external uses of backlight internal semaphore
[linux-3.10.git] / drivers / macintosh / via-pmu-backlight.c
index 801a974..7ba2042 100644 (file)
@@ -111,7 +111,6 @@ static int pmu_backlight_get_brightness(struct backlight_device *bd)
 }
 
 static struct backlight_properties pmu_backlight_data = {
-       .owner          = THIS_MODULE,
        .get_brightness = pmu_backlight_get_brightness,
        .update_status  = pmu_backlight_update_status,
        .max_brightness = (FB_BACKLIGHT_LEVELS - 1),
@@ -167,11 +166,9 @@ void __init pmu_backlight_init()
                                pmu_backlight_data.max_brightness / 15);
        }
 
-       down(&bd->sem);
        bd->props->brightness = level;
        bd->props->power = FB_BLANK_UNBLANK;
-       bd->props->update_status(bd);
-       up(&bd->sem);
+       backlight_update_status(bd);
 
        mutex_lock(&pmac_backlight_mutex);
        if (!pmac_backlight)