diff options
Diffstat (limited to 'drivers/video/riva/fbdev.c')
-rw-r--r-- | drivers/video/riva/fbdev.c | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/drivers/video/riva/fbdev.c b/drivers/video/riva/fbdev.c index ab00350907dd..3a75def01b28 100644 --- a/drivers/video/riva/fbdev.c +++ b/drivers/video/riva/fbdev.c | |||
@@ -371,13 +371,6 @@ static void riva_bl_init(struct riva_par *par) | |||
371 | bd->props->power = FB_BLANK_UNBLANK; | 371 | bd->props->power = FB_BLANK_UNBLANK; |
372 | backlight_update_status(bd); | 372 | backlight_update_status(bd); |
373 | 373 | ||
374 | #ifdef CONFIG_PMAC_BACKLIGHT | ||
375 | mutex_lock(&pmac_backlight_mutex); | ||
376 | if (!pmac_backlight) | ||
377 | pmac_backlight = bd; | ||
378 | mutex_unlock(&pmac_backlight_mutex); | ||
379 | #endif | ||
380 | |||
381 | printk("riva: Backlight initialized (%s)\n", name); | 374 | printk("riva: Backlight initialized (%s)\n", name); |
382 | 375 | ||
383 | return; | 376 | return; |
@@ -390,17 +383,8 @@ static void riva_bl_exit(struct fb_info *info) | |||
390 | { | 383 | { |
391 | struct backlight_device *bd = info->bl_dev; | 384 | struct backlight_device *bd = info->bl_dev; |
392 | 385 | ||
393 | if (bd) { | 386 | backlight_device_unregister(bd); |
394 | #ifdef CONFIG_PMAC_BACKLIGHT | 387 | printk("riva: Backlight unloaded\n"); |
395 | mutex_lock(&pmac_backlight_mutex); | ||
396 | if (pmac_backlight == bd) | ||
397 | pmac_backlight = NULL; | ||
398 | mutex_unlock(&pmac_backlight_mutex); | ||
399 | #endif | ||
400 | backlight_device_unregister(bd); | ||
401 | |||
402 | printk("riva: Backlight unloaded\n"); | ||
403 | } | ||
404 | } | 388 | } |
405 | #else | 389 | #else |
406 | static inline void riva_bl_init(struct riva_par *par) {} | 390 | static inline void riva_bl_init(struct riva_par *par) {} |