From: Dan Carpenter Date: Sun, 2 Dec 2012 17:29:30 +0000 (-0800) Subject: leds: leds-lp5521: return an error code on error in probe() X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~3^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2f05e1d4458f9cb68d4d36fb47e6830fec03c80e;p=pandora-kernel.git 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 Signed-off-by: Dan Carpenter Signed-off-by: Bryan Wu --- Reading git-diff-tree failed