Thread (3 messages) 3 messages, 2 authors, 2004-11-03

Re: [PATCH] atyfb: Fix power management

From: Linus Torvalds <torvalds@osdl.org>
Date: 2004-11-03 03:47:33


On Wed, 3 Nov 2004, Benjamin Herrenschmidt wrote:
The PM code in atyfb got broken in the recent update. This is just a typo though,
here's a fix:
Ok, this comment makes no sense. Which is it? It's certainly more than a 
typo, you're literally changing the return value behaviour to be the 
reverse of what it was.

Now, I think your fix is right, but your checkin comment doesn't make any 
sense. Can you phrase that better?

		Linus
quoted hunk ↗ jump to hunk
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>

Index: linux-work/drivers/video/aty/atyfb_base.c
===================================================================
--- linux-work.orig/drivers/video/aty/atyfb_base.c	2004-11-03 14:13:10.319998376 +1100
+++ linux-work/drivers/video/aty/atyfb_base.c	2004-11-03 14:13:45.491651472 +1100
@@ -2015,7 +2015,7 @@
 	}
 	mdelay(500);
 
-	return timeout ? -1 : 0;
+	return timeout ? 0 : -EIO;
 }
 
 static int atyfb_pci_suspend(struct pci_dev *pdev, u32 state)

-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help