Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 43823
b: refs/heads/master
c: 4437cd1
h: refs/heads/master
i:
  43821: 844207d
  43819: 2184f04
  43815: d1fde31
  43807: f61ca92
v: v3
  • Loading branch information
Henrique de Moraes Holschuh authored and Linus Torvalds committed Dec 8, 2006
1 parent d144d9f commit 4e8949c
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 024cd7e08896884cfd58c78cd1f2103be12e3c09
refs/heads/master: 4437cd1e98409e236a9d303fb742fdd53b3a20bb
6 changes: 0 additions & 6 deletions trunk/drivers/video/backlight/backlight.c
Original file line number Diff line number Diff line change
Expand Up @@ -282,12 +282,6 @@ void backlight_device_unregister(struct backlight_device *bd)
&bl_class_device_attributes[i]);

down(&bd->sem);
if (likely(bd->props && bd->props->update_status)) {
bd->props->brightness = 0;
bd->props->power = 0;
bd->props->update_status(bd);
}

bd->props = NULL;
up(&bd->sem);

Expand Down
4 changes: 4 additions & 0 deletions trunk/drivers/video/backlight/corgi_bl.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,10 @@ static int corgibl_probe(struct platform_device *pdev)

static int corgibl_remove(struct platform_device *dev)
{
corgibl_data.power = 0;
corgibl_data.brightness = 0;
corgibl_send_intensity(corgi_backlight_device);

backlight_device_unregister(corgi_backlight_device);

printk("Corgi Backlight Driver Unloaded\n");
Expand Down
4 changes: 4 additions & 0 deletions trunk/drivers/video/backlight/hp680_bl.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,10 @@ static int __init hp680bl_probe(struct platform_device *dev)

static int hp680bl_remove(struct platform_device *dev)
{
hp680bl_data.brightness = 0;
hp680bl_data.power = 0;
hp680bl_send_intensity(hp680_backlight_device);

backlight_device_unregister(hp680_backlight_device);

return 0;
Expand Down
4 changes: 4 additions & 0 deletions trunk/drivers/video/backlight/locomolcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,10 @@ static int locomolcd_remove(struct locomo_dev *dev)
{
unsigned long flags;

locomobl_data.brightness = 0;
locomobl_data.power = 0;
locomolcd_set_intensity(locomolcd_bl_device);

backlight_device_unregister(locomolcd_bl_device);
local_irq_save(flags);
locomolcd_dev = NULL;
Expand Down

0 comments on commit 4e8949c

Please sign in to comment.