Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 376502
b: refs/heads/master
c: 56c21b5
h: refs/heads/master
v: v3
  • Loading branch information
Richard Genoud authored and Jean-Christophe PLAGNIOL-VILLARD committed May 31, 2013
1 parent b2408a2 commit e7682cd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 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: 65ac057bce426b4abdf42384c4e09e40a634df32
refs/heads/master: 56c21b53ab071feb3ce93375a563ead745fa7105
10 changes: 8 additions & 2 deletions trunk/drivers/video/atmel_lcdfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,14 @@ static void init_backlight(struct atmel_lcdfb_info *sinfo)

static void exit_backlight(struct atmel_lcdfb_info *sinfo)
{
if (sinfo->backlight)
backlight_device_unregister(sinfo->backlight);
if (!sinfo->backlight)
return;

if (sinfo->backlight->ops) {
sinfo->backlight->props.power = FB_BLANK_POWERDOWN;
sinfo->backlight->ops->update_status(sinfo->backlight);
}
backlight_device_unregister(sinfo->backlight);
}

#else
Expand Down

0 comments on commit e7682cd

Please sign in to comment.