linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] softcursor fix for PM
@ 2004-02-10 10:38 Benjamin Herrenschmidt
  0 siblings, 0 replies; only message in thread
From: Benjamin Herrenschmidt @ 2004-02-10 10:38 UTC (permalink / raw)
  To: James Simmons; +Cc: Linux Fbdev development list

diff -urN fbdev-2.5/drivers/video/softcursor.c linuxppc-2.5-benh/drivers/video/softcursor.c
--- fbdev-2.5/drivers/video/softcursor.c	2004-02-10 21:15:18.000000000 +1100
+++ linuxppc-2.5-benh/drivers/video/softcursor.c	2004-02-10 21:06:24.000000000 +1100
@@ -62,7 +62,10 @@
 
 	if (cursor->set & FB_CUR_SETSHAPE)
 		fb_load_cursor_image(info);
-		
+
+	if (info->state != FBINFO_STATE_RUNNING)
+		return 0;
+
 	if (!cursor->enable || (info->cursor.enable && (cursor->set & FB_CUR_SETPOS))) {
 		if (needsync && info->fbops->fb_sync) {
 			info->fbops->fb_sync(info);




-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-02-10 10:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-10 10:38 [PATCH] softcursor fix for PM Benjamin Herrenschmidt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).