diff options
author | Richard Purdie <rpurdie@rpsys.net> | 2007-02-08 19:34:52 -0500 |
---|---|---|
committer | Richard Purdie <rpurdie@rpsys.net> | 2007-02-20 03:38:45 -0500 |
commit | 1cfc97f21f6ab91df8d5617fcbf758322fdd238b (patch) | |
tree | 610ccaa9d6d57d79c293d3d23fe813fb9c54fa7d /drivers/video/nvidia/nv_backlight.c | |
parent | 249040dc7fd391186f420fe23a9b59d357103cac (diff) |
backlight: Remove uneeded nvidia set_power calls
nvidia_bl_set_power isn't needed since the backlight class handles
this by receiving fb events itself and calling update_status so
remove it.
Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
Diffstat (limited to 'drivers/video/nvidia/nv_backlight.c')
-rw-r--r-- | drivers/video/nvidia/nv_backlight.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/video/nvidia/nv_backlight.c b/drivers/video/nvidia/nv_backlight.c index f5e42d0bd0da..695b6bf54d92 100644 --- a/drivers/video/nvidia/nv_backlight.c +++ b/drivers/video/nvidia/nv_backlight.c | |||
@@ -109,18 +109,6 @@ static struct backlight_properties nvidia_bl_data = { | |||
109 | .max_brightness = (FB_BACKLIGHT_LEVELS - 1), | 109 | .max_brightness = (FB_BACKLIGHT_LEVELS - 1), |
110 | }; | 110 | }; |
111 | 111 | ||
112 | void nvidia_bl_set_power(struct fb_info *info, int power) | ||
113 | { | ||
114 | mutex_lock(&info->bl_mutex); | ||
115 | |||
116 | if (info->bl_dev) { | ||
117 | info->bl_dev->props->power = power; | ||
118 | __nvidia_bl_update_status(info->bl_dev); | ||
119 | } | ||
120 | |||
121 | mutex_unlock(&info->bl_mutex); | ||
122 | } | ||
123 | |||
124 | void nvidia_bl_init(struct nvidia_par *par) | 112 | void nvidia_bl_init(struct nvidia_par *par) |
125 | { | 113 | { |
126 | struct fb_info *info = pci_get_drvdata(par->pci_dev); | 114 | struct fb_info *info = pci_get_drvdata(par->pci_dev); |