Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 376052
b: refs/heads/master
c: 3b81379
h: refs/heads/master
v: v3
  • Loading branch information
Wei Yongjun authored and Jonathan Cameron committed May 22, 2013
1 parent 22f39c7 commit 1ede909
Show file tree
Hide file tree
Showing 2 changed files with 6 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: c80712c793febdf1b13ad0e1c71a051e071b3fd8
refs/heads/master: 3b813798aa7030f1beef638c75f8b0008f737a82
9 changes: 5 additions & 4 deletions trunk/drivers/staging/iio/light/tsl2x7x_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1869,6 +1869,7 @@ static int tsl2x7x_probe(struct i2c_client *clientp,
dev_info(&chip->client->dev,
"%s: i2c device found does not match expected id\n",
__func__);
ret = -EINVAL;
goto fail1;
}

Expand Down Expand Up @@ -1907,7 +1908,7 @@ static int tsl2x7x_probe(struct i2c_client *clientp,
if (ret) {
dev_err(&clientp->dev,
"%s: irq request failed", __func__);
goto fail2;
goto fail1;
}
}

Expand All @@ -1920,17 +1921,17 @@ static int tsl2x7x_probe(struct i2c_client *clientp,
if (ret) {
dev_err(&clientp->dev,
"%s: iio registration failed\n", __func__);
goto fail1;
goto fail2;
}

dev_info(&clientp->dev, "%s Light sensor found.\n", id->name);

return 0;

fail1:
fail2:
if (clientp->irq)
free_irq(clientp->irq, indio_dev);
fail2:
fail1:
iio_device_free(indio_dev);

return ret;
Expand Down

0 comments on commit 1ede909

Please sign in to comment.