Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=f22e521f2992031fdedb661f2a647cafd2e45fa1 Commit: f22e521f2992031fdedb661f2a647cafd2e45fa1 Parent: c1f303bb21a63ed11edfb790e5701ab0ded62eff Author: Ben Dooks <[EMAIL PROTECTED]> AuthorDate: Tue Oct 16 01:28:38 2007 -0700 Committer: Linus Torvalds <[EMAIL PROTECTED]> CommitDate: Tue Oct 16 09:43:14 2007 -0700
sm501fb: Call fb suspend function during suspend and resume Call the fb_set_suspend() over suspend and resume. Signed-off-by: Antonino Daplas <[EMAIL PROTECTED]> Signed-off-by: Andrew Morton <[EMAIL PROTECTED]> Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]> --- drivers/video/sm501fb.c | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/drivers/video/sm501fb.c b/drivers/video/sm501fb.c index fc0cdc8..d97edd7 100644 --- a/drivers/video/sm501fb.c +++ b/drivers/video/sm501fb.c @@ -28,6 +28,7 @@ #include <linux/wait.h> #include <linux/platform_device.h> #include <linux/clk.h> +#include <linux/console.h> #include <asm/io.h> #include <asm/uaccess.h> @@ -1697,6 +1698,10 @@ static int sm501fb_suspend_fb(struct sm501fb_info *info, /* blank the relevant interface to ensure unit power minimised */ (par->ops.fb_blank)(FB_BLANK_POWERDOWN, fbi); + acquire_console_sem(); + fb_set_suspend(fbi, 1); + release_console_sem(); + return 0; err_nocursor: @@ -1732,6 +1737,10 @@ static void sm501fb_resume_fb(struct sm501fb_info *info, memcpy_toio(par->cursor.k_addr, par->store_cursor, par->cursor.size); + acquire_console_sem(); + fb_set_suspend(fbi, 0); + release_console_sem(); + vfree(par->store_fb); vfree(par->store_cursor); } - To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html