aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/riva/fbdev.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/riva/fbdev.c')
-rw-r--r--drivers/video/riva/fbdev.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/drivers/video/riva/fbdev.c b/drivers/video/riva/fbdev.c
index b70d18f7fcd9..9e7d3fcde207 100644
--- a/drivers/video/riva/fbdev.c
+++ b/drivers/video/riva/fbdev.c
@@ -352,18 +352,6 @@ static struct backlight_properties riva_bl_data = {
352 .max_brightness = (FB_BACKLIGHT_LEVELS - 1), 352 .max_brightness = (FB_BACKLIGHT_LEVELS - 1),
353}; 353};
354 354
355static void riva_bl_set_power(struct fb_info *info, int power)
356{
357 mutex_lock(&info->bl_mutex);
358
359 if (info->bl_dev) {
360 info->bl_dev->props->power = power;
361 __riva_bl_update_status(info->bl_dev);
362 }
363
364 mutex_unlock(&info->bl_mutex);
365}
366
367static void riva_bl_init(struct riva_par *par) 355static void riva_bl_init(struct riva_par *par)
368{ 356{
369 struct fb_info *info = pci_get_drvdata(par->pdev); 357 struct fb_info *info = pci_get_drvdata(par->pdev);
@@ -442,7 +430,6 @@ static void riva_bl_exit(struct riva_par *par)
442#else 430#else
443static inline void riva_bl_init(struct riva_par *par) {} 431static inline void riva_bl_init(struct riva_par *par) {}
444static inline void riva_bl_exit(struct riva_par *par) {} 432static inline void riva_bl_exit(struct riva_par *par) {}
445static inline void riva_bl_set_power(struct fb_info *info, int power) {}
446#endif /* CONFIG_FB_RIVA_BACKLIGHT */ 433#endif /* CONFIG_FB_RIVA_BACKLIGHT */
447 434
448/* ------------------------------------------------------------------------- * 435/* ------------------------------------------------------------------------- *
@@ -1343,8 +1330,6 @@ static int rivafb_blank(int blank, struct fb_info *info)
1343 SEQout(par, 0x01, tmp); 1330 SEQout(par, 0x01, tmp);
1344 CRTCout(par, 0x1a, vesa); 1331 CRTCout(par, 0x1a, vesa);
1345 1332
1346 riva_bl_set_power(info, blank);
1347
1348 NVTRACE_LEAVE(); 1333 NVTRACE_LEAVE();
1349 1334
1350 return 0; 1335 return 0;