summaryrefslogtreecommitdiff
path: root/drivers/mfd/max8907.c
diff options
context:
space:
mode:
authorLaszlo Papp <lpapp@kde.org>2013-12-17 16:49:51 +0400
committerLee Jones <lee.jones@linaro.org>2014-01-21 12:28:10 +0400
commitc1ec8fc308bb8171c76b5bed7f4028b6290e53f9 (patch)
treecae119ca4ac650a4e0ca1e3822115a4c87b5ac77 /drivers/mfd/max8907.c
parentdb9ef449aaa550389008c2020fba02e4440ce24b (diff)
downloadlinux-c1ec8fc308bb8171c76b5bed7f4028b6290e53f9.tar.xz
mfd: max8997: Enforce mfd_add_devices() return value check
The original author provided a random return value check which is redundant and seemingly floating. This patch not only relocates the check so it is more clearly associated with the invokation of mfd_add_devices(), but provides a store for the error value. We also print a meaningful message on error before returning. Signed-off-by: Laszlo Papp <lpapp@kde.org> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd/max8907.c')
0 files changed, 0 insertions, 0 deletions