|
@@ -363,6 +363,9 @@ int bttv_I2CWrite(struct bttv *btv, unsigned char addr, unsigned char b1,
|
|
|
/* read EEPROM content */
|
|
|
void __devinit bttv_readee(struct bttv *btv, unsigned char *eedata, int addr)
|
|
|
{
|
|
|
+ memset(eedata, 0, 256);
|
|
|
+ if (0 != btv->i2c_rc)
|
|
|
+ return;
|
|
|
btv->i2c_client.addr = addr >> 1;
|
|
|
tveeprom_read(&btv->i2c_client, eedata, 256);
|
|
|
}
|