Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 164543
b: refs/heads/master
c: 560a64a
h: refs/heads/master
i:
  164541: 7ceb0d7
  164539: 66fbe92
  164535: e0e4d99
  164527: dccd786
  164511: b321f4b
  164479: 59b3f16
v: v3
  • Loading branch information
Roel Kluin authored and Linus Torvalds committed Sep 22, 2009
1 parent ff25d9d commit 63174e4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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: 905ffdc35e50844ab45bbc59d5302238844f8526
refs/heads/master: 560a64a2b501add585b494b2b9cd9f68c0636b50
6 changes: 4 additions & 2 deletions trunk/drivers/hwmon/sht15.c
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ static int __devinit sht15_probe(struct platform_device *pdev)
ret = sysfs_create_group(&pdev->dev.kobj, &sht15_attr_group);
if (ret) {
dev_err(&pdev->dev, "sysfs create failed");
goto err_free_data;
goto err_release_gpio_data;
}

ret = request_irq(gpio_to_irq(data->pdata->gpio_data),
Expand All @@ -581,10 +581,12 @@ static int __devinit sht15_probe(struct platform_device *pdev)
data->hwmon_dev = hwmon_device_register(data->dev);
if (IS_ERR(data->hwmon_dev)) {
ret = PTR_ERR(data->hwmon_dev);
goto err_release_gpio_data;
goto err_release_irq;
}
return 0;

err_release_irq:
free_irq(gpio_to_irq(data->pdata->gpio_data), data);
err_release_gpio_data:
gpio_free(data->pdata->gpio_data);
err_release_gpio_sck:
Expand Down

0 comments on commit 63174e4

Please sign in to comment.