Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 271300
b: refs/heads/master
c: 9e769ff
h: refs/heads/master
v: v3
  • Loading branch information
Herton Ronaldo Krzesinski authored and Florian Tobias Schandinat committed Sep 2, 2011
1 parent b5f9368 commit bafd894
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 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: f49446ebdb043344058f67d25fbb7e3d9b306511
refs/heads/master: 9e769ff3f585db8f978f9113be83d36c7e3965dd
3 changes: 0 additions & 3 deletions trunk/drivers/video/fbmem.c
Original file line number Diff line number Diff line change
Expand Up @@ -1738,8 +1738,6 @@ void fb_set_suspend(struct fb_info *info, int state)
{
struct fb_event event;

if (!lock_fb_info(info))
return;
event.info = info;
if (state) {
fb_notifier_call_chain(FB_EVENT_SUSPEND, &event);
Expand All @@ -1748,7 +1746,6 @@ void fb_set_suspend(struct fb_info *info, int state)
info->state = FBINFO_STATE_RUNNING;
fb_notifier_call_chain(FB_EVENT_RESUME, &event);
}
unlock_fb_info(info);
}

/**
Expand Down
3 changes: 3 additions & 0 deletions trunk/drivers/video/fbsysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -399,9 +399,12 @@ static ssize_t store_fbstate(struct device *device,

state = simple_strtoul(buf, &last, 0);

if (!lock_fb_info(fb_info))
return -ENODEV;
console_lock();
fb_set_suspend(fb_info, (int)state);
console_unlock();
unlock_fb_info(fb_info);

return count;
}
Expand Down

0 comments on commit bafd894

Please sign in to comment.