提交 213b8a9a 编写于 作者: J Jean Delvare 提交者: Linus Torvalds

rivafb: Fix I2C getscl callback function

Fix rivafb's I2C getscl callback function, as was done in nvidiafb recently.
Signed-off-by: NJean Delvare <khali@linux-fr.org>
Signed-off-by: NAntonino Daplas <adaplas@gmail.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册