From: Guenter Roeck Date: Fri, 13 Sep 2013 17:42:39 +0000 (-0700) Subject: hwmon: (gpio_fan) Use error value returned from get_fan_speed_index() X-Git-Tag: omap-for-v3.13/fixes-for-merge-window-take2~18^2~42 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c52ae3d2794ee2a248245a9e5a26f717e1c401f5;p=pandora-kernel.git hwmon: (gpio_fan) Use error value returned from get_fan_speed_index() get_fan_speed_index() returns -EINVAL in case of errors, only to have it ignored and replaced with -ENODEV. Make it return -ENODEV and use it. Signed-off-by: Guenter Roeck --- Reading git-diff-tree failed