Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 221719
b: refs/heads/master
c: aec0428
h: refs/heads/master
i:
  221717: 7da2aff
  221715: 8f8c205
  221711: 5c26854
v: v3
  • Loading branch information
Dan Carpenter authored and Linus Torvalds committed Nov 12, 2010
1 parent f196218 commit 51a2fc3
Show file tree
Hide file tree
Showing 2 changed files with 7 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: d2e61b8dc99fdb36e0fd176e25365f69afda4ff9
refs/heads/master: aec04288904a7308f2900926902040e7a69ae2be
8 changes: 6 additions & 2 deletions trunk/drivers/misc/bh1770glc.c
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,7 @@ static ssize_t bh1770_power_state_store(struct device *dev,
{
struct bh1770_chip *chip = dev_get_drvdata(dev);
unsigned long value;
size_t ret;
ssize_t ret;

if (strict_strtoul(buf, 0, &value))
return -EINVAL;
Expand All @@ -659,8 +659,12 @@ static ssize_t bh1770_power_state_store(struct device *dev,
pm_runtime_get_sync(dev);

ret = bh1770_lux_rate(chip, chip->lux_rate_index);
ret |= bh1770_lux_interrupt_control(chip, BH1770_ENABLE);
if (ret < 0) {
pm_runtime_put(dev);
goto leave;
}

ret = bh1770_lux_interrupt_control(chip, BH1770_ENABLE);
if (ret < 0) {
pm_runtime_put(dev);
goto leave;
Expand Down

0 comments on commit 51a2fc3

Please sign in to comment.