diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/video/chipsfb.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/drivers/video/chipsfb.c b/drivers/video/chipsfb.c index 9a656bc6295c..2a17dfc232f3 100644 --- a/drivers/video/chipsfb.c +++ b/drivers/video/chipsfb.c | |||
@@ -145,24 +145,6 @@ static int chipsfb_set_par(struct fb_info *info) | |||
145 | 145 | ||
146 | static int chipsfb_blank(int blank, struct fb_info *info) | 146 | static int chipsfb_blank(int blank, struct fb_info *info) |
147 | { | 147 | { |
148 | #ifdef CONFIG_PMAC_BACKLIGHT | ||
149 | mutex_lock(&pmac_backlight_mutex); | ||
150 | |||
151 | if (pmac_backlight) { | ||
152 | /* used to disable backlight only for blank > 1, but it seems | ||
153 | * useful at blank = 1 too (saves battery, extends backlight | ||
154 | * life) | ||
155 | */ | ||
156 | if (blank) | ||
157 | pmac_backlight->props->power = FB_BLANK_POWERDOWN; | ||
158 | else | ||
159 | pmac_backlight->props->power = FB_BLANK_UNBLANK; | ||
160 | backlight_update_status(pmac_backlight); | ||
161 | } | ||
162 | |||
163 | mutex_unlock(&pmac_backlight_mutex); | ||
164 | #endif /* CONFIG_PMAC_BACKLIGHT */ | ||
165 | |||
166 | return 1; /* get fb_blank to set the colormap to all black */ | 148 | return 1; /* get fb_blank to set the colormap to all black */ |
167 | } | 149 | } |
168 | 150 | ||