diff options
author | Christoph Hellwig <hch@hera.kernel.org> | 2005-05-27 04:16:24 -0400 |
---|---|---|
committer | Christoph Hellwig <hch@melbourne.sgi.com> | 2005-05-27 04:16:24 -0400 |
commit | b19312c4c8f3f84da57bba01d45549df1cf10dcd (patch) | |
tree | 1c34ce89be6b4e257bc03026d0268deb17727044 /drivers/media/video/bttv-i2c.c | |
parent | d3870398fafd4911bd84573b78be4b6b762f32b0 (diff) | |
parent | 4ec5240ec367a592834385893200dd4fb369354c (diff) |
Merge with /pub/scm/linux/kernel/git/torvalds/linux-2.6.git
Diffstat (limited to 'drivers/media/video/bttv-i2c.c')
-rw-r--r-- | drivers/media/video/bttv-i2c.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/media/video/bttv-i2c.c b/drivers/media/video/bttv-i2c.c index e3f477dff827..c2368bc832ed 100644 --- a/drivers/media/video/bttv-i2c.c +++ b/drivers/media/video/bttv-i2c.c | |||
@@ -363,6 +363,9 @@ int bttv_I2CWrite(struct bttv *btv, unsigned char addr, unsigned char b1, | |||
363 | /* read EEPROM content */ | 363 | /* read EEPROM content */ |
364 | void __devinit bttv_readee(struct bttv *btv, unsigned char *eedata, int addr) | 364 | void __devinit bttv_readee(struct bttv *btv, unsigned char *eedata, int addr) |
365 | { | 365 | { |
366 | memset(eedata, 0, 256); | ||
367 | if (0 != btv->i2c_rc) | ||
368 | return; | ||
366 | btv->i2c_client.addr = addr >> 1; | 369 | btv->i2c_client.addr = addr >> 1; |
367 | tveeprom_read(&btv->i2c_client, eedata, 256); | 370 | tveeprom_read(&btv->i2c_client, eedata, 256); |
368 | } | 371 | } |