aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@rpsys.net>2007-02-09 04:50:47 -0500
committerRichard Purdie <rpurdie@rpsys.net>2007-02-20 03:38:46 -0500
commit85a3a9aa69c24c056eae578e68d44d5f612e6b51 (patch)
treed897003052162da25d6ef0751db66c2642731a61 /drivers
parent994efacdf9a087b52f71e620b58dfa526b0cf928 (diff)
backlight: Remove uneeded update_status call from chipsfb.c
Remove uneeded update_status call from chipsfb.c since the backlight core now receives software blanking notifications too. Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/video/chipsfb.c18
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
146static int chipsfb_blank(int blank, struct fb_info *info) 146static 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