Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 360848
b: refs/heads/master
c: 3e78080
h: refs/heads/master
v: v3
  • Loading branch information
Mark Brown authored and Guenter Roeck committed Mar 4, 2013
1 parent d2a169a commit 51d15a2
Show file tree
Hide file tree
Showing 2 changed files with 8 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: ab302bb0b87fe01f3110c1c5d5a6fca439d27c6b
refs/heads/master: 3e78080f81481aa8340374d5a37ae033c1cf4272
8 changes: 7 additions & 1 deletion trunk/drivers/hwmon/sht15.c
Original file line number Diff line number Diff line change
Expand Up @@ -965,7 +965,13 @@ static int sht15_probe(struct platform_device *pdev)
if (voltage)
data->supply_uv = voltage;

regulator_enable(data->reg);
ret = regulator_enable(data->reg);
if (ret != 0) {
dev_err(&pdev->dev,
"failed to enable regulator: %d\n", ret);
return ret;
}

/*
* Setup a notifier block to update this if another device
* causes the voltage to change
Expand Down

0 comments on commit 51d15a2

Please sign in to comment.