Commit 213b8a9a authored by Jean Delvare's avatar Jean Delvare Committed by Linus Torvalds

rivafb: Fix I2C getscl callback function

Fix rivafb's I2C getscl callback function, as was done in nvidiafb recently.
Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
Signed-off-by: default avatarAntonino Daplas <adaplas@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 14340586
...@@ -70,8 +70,6 @@ static int riva_gpio_getscl(void* data) ...@@ -70,8 +70,6 @@ static int riva_gpio_getscl(void* data)
if (VGA_RD08(par->riva.PCIO, 0x3d5) & 0x04) if (VGA_RD08(par->riva.PCIO, 0x3d5) & 0x04)
val = 1; val = 1;
val = VGA_RD08(par->riva.PCIO, 0x3d5);
return val; return val;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment