rivafb: Fix I2C getscl callback function

Started by Antonino A. Daplas on May 9, 2007

Subsystems (2)

Maintainers (2)

DORMANTno replies

open the first message on its own page

Message details and related content
From: Jean Delvare <redacted>

Fix rivafb's I2C getscl callback function, as was done in nvidiafb
recently.

Signed-off-by: Jean Delvare <redacted>
Signed-off-by: Antonino Daplas <adaplas@gmail.com>
---
Andrew,

This chunk somehow got lost in the merge.

Tony

 drivers/video/riva/rivafb-i2c.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/drivers/video/riva/rivafb-i2c.c b/drivers/video/riva/rivafb-i2c.c
index 76e6ce3..a0e22ac 100644
--- a/drivers/video/riva/rivafb-i2c.c
+++ b/drivers/video/riva/rivafb-i2c.c
@@ -70,8 +70,6 @@ static int riva_gpio_getscl(void* data)
 	if (VGA_RD08(par->riva.PCIO, 0x3d5) & 0x04)
 		val = 1;
 
-	val = VGA_RD08(par->riva.PCIO, 0x3d5);
-
 	return val;
 }
 


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help