Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 220628
b: refs/heads/master
c: d1f92f0
h: refs/heads/master
v: v3
  • Loading branch information
Andrew Chew authored and Samuel Ortiz committed Oct 28, 2010
1 parent 41a7bf5 commit dbcd806
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 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: b0b4a7c28ebee0763cae90d470cfff501a83be37
refs/heads/master: d1f92f05754116fc65cb1165d4942d25df6f200e
4 changes: 3 additions & 1 deletion trunk/drivers/mfd/tps6586x.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
/* device id */
#define TPS6586X_VERSIONCRC 0xcd
#define TPS658621A_VERSIONCRC 0x15
#define TPS658621C_VERSIONCRC 0x2c

struct tps6586x_irq_data {
u8 mask_reg;
Expand Down Expand Up @@ -497,7 +498,8 @@ static int __devinit tps6586x_i2c_probe(struct i2c_client *client,
return -EIO;
}

if (ret != TPS658621A_VERSIONCRC) {
if ((ret != TPS658621A_VERSIONCRC) &&
(ret != TPS658621C_VERSIONCRC)) {
dev_err(&client->dev, "Unsupported chip ID: %x\n", ret);
return -ENODEV;
}
Expand Down

0 comments on commit dbcd806

Please sign in to comment.