Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 119547
b: refs/heads/master
c: c41109f
h: refs/heads/master
i:
  119545: 3fb00ef
  119543: 66519c0
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed Nov 17, 2008
1 parent d0c4b3a commit ab09167
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: df4533af7f45e87a4be470502fa3cea2f6c96da9
refs/heads/master: c41109fc9a13c6af0e4069dd92fdb4c5c8046649
10 changes: 6 additions & 4 deletions trunk/drivers/media/video/em28xx/em28xx-i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -337,9 +337,9 @@ static int em28xx_i2c_eeprom(struct em28xx *dev, unsigned char *eedata, int len)
/* Check if board has eeprom */
err = i2c_master_recv(&dev->i2c_client, &buf, 0);
if (err < 0) {
em28xx_errdev("%s: i2c_master_recv failed! err [%d]\n",
__func__, err);
return err;
em28xx_errdev("board has no eeprom\n");
memset(eedata, 0, len);
return -ENODEV;
}

buf = 0;
Expand Down Expand Up @@ -609,14 +609,16 @@ int em28xx_i2c_register(struct em28xx *dev)
dev->i2c_client.adapter = &dev->i2c_adap;

retval = em28xx_i2c_eeprom(dev, dev->eedata, sizeof(dev->eedata));
if (retval < 0) {
if ((retval < 0) && (retval != -ENODEV)) {
em28xx_errdev("%s: em28xx_i2_eeprom failed! retval [%d]\n",
__func__, retval);

return retval;
}

if (i2c_scan)
em28xx_do_i2c_scan(dev);

return 0;
}

Expand Down

0 comments on commit ab09167

Please sign in to comment.