]> err.no Git - linux-2.6/blobdiff - drivers/video/chipsfb.c
[S390] xpram off by one error.
[linux-2.6] / drivers / video / chipsfb.c
index eba9d93ae36074884982d5011e5419f4099261cc..73cb426bf2d7db5428ecb348da4b3fc112d2704c 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