rivafb: Fix I2C getscl callback function
Fix rivafb's I2C getscl callback function, as was done in nvidiafb recently. Signed-off-by: Jean Delvare <khali@linux-fr.org> Signed-off-by: Antonino Daplas <adaplas@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
1434058614
commit
213b8a9af6
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue