Skip to content

Commit

Permalink
leds: lm355x: Return proper error for lm3556_indicator_pattern_store …
Browse files Browse the repository at this point in the history
…error path

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: G.Shark Jeong <gshark.jeong@gmail.com>
Signed-off-by: Bryan Wu <cooloney@gmail.com>
  • Loading branch information
Axel Lin authored and Bryan Wu committed Nov 26, 2012
1 parent eccb663 commit 14ce82e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/leds/leds-lm355x.c
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ static ssize_t lm3556_indicator_pattern_store(struct device *dev,
return size;
out:
dev_err(chip->dev, "%s:i2c access fail to register\n", __func__);
return size;
return ret;
}

static DEVICE_ATTR(pattern, 0666, NULL, lm3556_indicator_pattern_store);
Expand Down

0 comments on commit 14ce82e

Please sign in to comment.