aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/aty/radeon_backlight.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/aty/radeon_backlight.c')
-rw-r--r--drivers/video/aty/radeon_backlight.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/drivers/video/aty/radeon_backlight.c b/drivers/video/aty/radeon_backlight.c
index f94e4616788d..8c775e6a7e03 100644
--- a/drivers/video/aty/radeon_backlight.c
+++ b/drivers/video/aty/radeon_backlight.c
@@ -192,13 +192,6 @@ void radeonfb_bl_init(struct radeonfb_info *rinfo)
192 bd->props->power = FB_BLANK_UNBLANK; 192 bd->props->power = FB_BLANK_UNBLANK;
193 backlight_update_status(bd); 193 backlight_update_status(bd);
194 194
195#ifdef CONFIG_PMAC_BACKLIGHT
196 mutex_lock(&pmac_backlight_mutex);
197 if (!pmac_backlight)
198 pmac_backlight = bd;
199 mutex_unlock(&pmac_backlight_mutex);
200#endif
201
202 printk("radeonfb: Backlight initialized (%s)\n", name); 195 printk("radeonfb: Backlight initialized (%s)\n", name);
203 196
204 return; 197 return;
@@ -215,12 +208,6 @@ void radeonfb_bl_exit(struct radeonfb_info *rinfo)
215 if (bd) { 208 if (bd) {
216 struct radeon_bl_privdata *pdata; 209 struct radeon_bl_privdata *pdata;
217 210
218#ifdef CONFIG_PMAC_BACKLIGHT
219 mutex_lock(&pmac_backlight_mutex);
220 if (pmac_backlight == bd)
221 pmac_backlight = NULL;
222 mutex_unlock(&pmac_backlight_mutex);
223#endif
224 pdata = class_get_devdata(&bd->class_dev); 211 pdata = class_get_devdata(&bd->class_dev);
225 backlight_device_unregister(bd); 212 backlight_device_unregister(bd);
226 kfree(pdata); 213 kfree(pdata);