summaryrefslogtreecommitdiffstats
path: root/drivers/leds/leds-da903x.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2012-12-02 18:29:30 +0100
committerBryan Wu <cooloney@gmail.com>2012-12-03 20:16:58 +0100
commit2f05e1d4458f9cb68d4d36fb47e6830fec03c80e (patch)
tree1cecb89a8b55797d0a90f465fd0c593605673d56 /drivers/leds/leds-da903x.c
parentleds: leds-clevo-mail: Use pr_* instead of printks (diff)
downloadlinux-2f05e1d4458f9cb68d4d36fb47e6830fec03c80e.tar.xz
linux-2f05e1d4458f9cb68d4d36fb47e6830fec03c80e.zip
leds: leds-lp5521: return an error code on error in probe()
If "buf" wasn't equal to LP5521_REG_R_CURR_DEFAULT the probe fails but we still return zero. I've changed it to print an error message and return -EINVAL. Reported-by: Ben Hutchings <ben@decadent.org.uk> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Bryan Wu <cooloney@gmail.com>
Diffstat (limited to 'drivers/leds/leds-da903x.c')
0 files changed, 0 insertions, 0 deletions