From: Guenter Roeck Date: Fri, 20 Jan 2012 04:58:13 +0000 (-0800) Subject: hwmon: (lm70) Register hwmon device after creating attribute files, and remove it... X-Git-Tag: v3.4-rc1~167^2~24 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e200c14f60765ee3be6517659ec8fea06e299e39;p=pandora-kernel.git hwmon: (lm70) Register hwmon device after creating attribute files, and remove it first Register hwmon device as last operation in the probe function to ensure that all attribute files exist when accessed from user applications. Otherwise, there is a short time frame where the device is registered as hwmon device but sysfs attributes do not yet exist. This could result in applications erroneously not detecting attributes. Signed-off-by: Guenter Roeck --- Reading git-diff-tree failed