diff options
author | Kristoffer Ericson <kristoffer.ericson@gmail.com> | 2010-10-25 22:54:05 +0200 |
---|---|---|
committer | Kristoffer Ericson <kristoffer.ericson@gmail.com> | 2011-12-10 15:53:04 +0100 |
commit | 9de0975f628a36b72012935d90026a42600c7366 (patch) | |
tree | 71808864898a42c033e64fd5cf239b1171756a4a | |
parent | c2d3a53e5b39c60b81917822f5061d957f720c64 (diff) | |
download | linux-hpc-9de0975f628a36b72012935d90026a42600c7366.tar.gz |
Add fbmem patch suggested by blizzard (from qi-kernel)
-rw-r--r-- | drivers/video/fbmem.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/video/fbmem.c b/drivers/video/fbmem.c index b06647517c0e6a..7f59eb03bd23d1 100644 --- a/drivers/video/fbmem.c +++ b/drivers/video/fbmem.c @@ -1008,12 +1008,12 @@ fb_set_var(struct fb_info *info, struct fb_var_screeninfo *var) int fb_blank(struct fb_info *info, int blank) { - int ret = -EINVAL; + int ret = 0; if (blank > FB_BLANK_POWERDOWN) blank = FB_BLANK_POWERDOWN; - if (info->fbops->fb_blank) + if (info->fbops->fb_blank && blank == FB_BLANK_UNBLANK) ret = info->fbops->fb_blank(blank, info); if (!ret) { @@ -1024,6 +1024,10 @@ fb_blank(struct fb_info *info, int blank) fb_notifier_call_chain(FB_EVENT_BLANK, &event); } + if (info->fbops->fb_blank && blank != FB_BLANK_UNBLANK) + ret = info->fbops->fb_blank(blank, info); + + return ret; } |