diff options
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/backlight/backlight.c | 6 | ||||
-rw-r--r-- | drivers/video/backlight/corgi_bl.c | 4 | ||||
-rw-r--r-- | drivers/video/backlight/hp680_bl.c | 4 | ||||
-rw-r--r-- | drivers/video/backlight/locomolcd.c | 4 |
4 files changed, 12 insertions, 6 deletions
diff --git a/drivers/video/backlight/backlight.c b/drivers/video/backlight/backlight.c index 1dac9e743427..db8c191b1201 100644 --- a/drivers/video/backlight/backlight.c +++ b/drivers/video/backlight/backlight.c | |||
@@ -282,12 +282,6 @@ void backlight_device_unregister(struct backlight_device *bd) | |||
282 | &bl_class_device_attributes[i]); | 282 | &bl_class_device_attributes[i]); |
283 | 283 | ||
284 | down(&bd->sem); | 284 | down(&bd->sem); |
285 | if (likely(bd->props && bd->props->update_status)) { | ||
286 | bd->props->brightness = 0; | ||
287 | bd->props->power = 0; | ||
288 | bd->props->update_status(bd); | ||
289 | } | ||
290 | |||
291 | bd->props = NULL; | 285 | bd->props = NULL; |
292 | up(&bd->sem); | 286 | up(&bd->sem); |
293 | 287 | ||
diff --git a/drivers/video/backlight/corgi_bl.c b/drivers/video/backlight/corgi_bl.c index d07ecb53c68b..61587ca2cdbb 100644 --- a/drivers/video/backlight/corgi_bl.c +++ b/drivers/video/backlight/corgi_bl.c | |||
@@ -135,6 +135,10 @@ static int corgibl_probe(struct platform_device *pdev) | |||
135 | 135 | ||
136 | static int corgibl_remove(struct platform_device *dev) | 136 | static int corgibl_remove(struct platform_device *dev) |
137 | { | 137 | { |
138 | corgibl_data.power = 0; | ||
139 | corgibl_data.brightness = 0; | ||
140 | corgibl_send_intensity(corgi_backlight_device); | ||
141 | |||
138 | backlight_device_unregister(corgi_backlight_device); | 142 | backlight_device_unregister(corgi_backlight_device); |
139 | 143 | ||
140 | printk("Corgi Backlight Driver Unloaded\n"); | 144 | printk("Corgi Backlight Driver Unloaded\n"); |
diff --git a/drivers/video/backlight/hp680_bl.c b/drivers/video/backlight/hp680_bl.c index e3993213d10e..1c569fb543ae 100644 --- a/drivers/video/backlight/hp680_bl.c +++ b/drivers/video/backlight/hp680_bl.c | |||
@@ -117,6 +117,10 @@ static int __init hp680bl_probe(struct platform_device *dev) | |||
117 | 117 | ||
118 | static int hp680bl_remove(struct platform_device *dev) | 118 | static int hp680bl_remove(struct platform_device *dev) |
119 | { | 119 | { |
120 | hp680bl_data.brightness = 0; | ||
121 | hp680bl_data.power = 0; | ||
122 | hp680bl_send_intensity(hp680_backlight_device); | ||
123 | |||
120 | backlight_device_unregister(hp680_backlight_device); | 124 | backlight_device_unregister(hp680_backlight_device); |
121 | 125 | ||
122 | return 0; | 126 | return 0; |
diff --git a/drivers/video/backlight/locomolcd.c b/drivers/video/backlight/locomolcd.c index 628571c63bac..2d7905410b2a 100644 --- a/drivers/video/backlight/locomolcd.c +++ b/drivers/video/backlight/locomolcd.c | |||
@@ -200,6 +200,10 @@ static int locomolcd_remove(struct locomo_dev *dev) | |||
200 | { | 200 | { |
201 | unsigned long flags; | 201 | unsigned long flags; |
202 | 202 | ||
203 | locomobl_data.brightness = 0; | ||
204 | locomobl_data.power = 0; | ||
205 | locomolcd_set_intensity(locomolcd_bl_device); | ||
206 | |||
203 | backlight_device_unregister(locomolcd_bl_device); | 207 | backlight_device_unregister(locomolcd_bl_device); |
204 | local_irq_save(flags); | 208 | local_irq_save(flags); |
205 | locomolcd_dev = NULL; | 209 | locomolcd_dev = NULL; |