From: Guenter Roeck Date: Fri, 27 Mar 2015 13:03:41 +0000 (-0700) Subject: hwmon: (it87) Fix pwm sysfs attribute removal X-Git-Tag: omap-for-v4.1/fixes-rc1~180^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1696d1deb05710f246f62e810034fb5d8d7713bd;p=pandora-kernel.git hwmon: (it87) Fix pwm sysfs attribute removal Detection if a pwm channel is supported was wrong on removal, causing the code to try removing non-existing sysfs attributes. That didn't matter much because sysfs attribute removal of non-existing files fails silently, and because the wrong evaluation always returned false, but should nevertheless be fixed. Reviewed-by: Jean Delvare Signed-off-by: Guenter Roeck --- Reading git-diff-tree failed