aboutsummaryrefslogtreecommitdiff
path: root/drivers/scsi/mpt2sas/mpi/mpi2_raid.h
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2012-12-02 09:29:30 -0800
committerBryan Wu <[email protected]>2012-12-03 11:16:58 -0800
commit2f05e1d4458f9cb68d4d36fb47e6830fec03c80e (patch)
tree1cecb89a8b55797d0a90f465fd0c593605673d56 /drivers/scsi/mpt2sas/mpi/mpi2_raid.h
parent5c6f844cee2139182b3a778f2a883a77e5bb8f7d (diff)
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 <[email protected]> Signed-off-by: Dan Carpenter <[email protected]> Signed-off-by: Bryan Wu <[email protected]>
Diffstat (limited to 'drivers/scsi/mpt2sas/mpi/mpi2_raid.h')
0 files changed, 0 insertions, 0 deletions