Skip to content
Commit 2f05e1d4 authored by Dan Carpenter's avatar Dan Carpenter Committed by Bryan Wu
Browse files

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: default avatarBen Hutchings <ben@decadent.org.uk>
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarBryan Wu <cooloney@gmail.com>
parent 5c6f844c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment