Fix DMA resource allocation in ACPIPnP
[safe/jmp/linux-2.6] / drivers / video / chipsfb.c
index eba9d93..73cb426 100644 (file)
@@ -149,12 +149,11 @@ static int chipsfb_blank(int blank, struct fb_info *info)
        mutex_lock(&pmac_backlight_mutex);
 
        if (pmac_backlight) {
-               down(&pmac_backlight->sem);
-
                /* used to disable backlight only for blank > 1, but it seems
                 * useful at blank = 1 too (saves battery, extends backlight
                 * life)
                 */
+               down(&pmac_backlight->sem);
                if (blank)
                        pmac_backlight->props->power = FB_BLANK_POWERDOWN;
                else