From: Jean Delvare Date: Wed, 12 Jan 2011 20:55:09 +0000 (+0100) Subject: hwmon: (via686a) Initialize fan_div values X-Git-Tag: v2.6.38-rc1~241^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f790674d3f87df6390828ac21a7d1530f71b59c8;p=pandora-kernel.git hwmon: (via686a) Initialize fan_div values Functions set_fan_min() and set_fan_div() assume that the fan_div values have already been read from the register. The driver currently doesn't initialize them at load time, they are only set when function via686a_update_device() is called. This means that set_fan_min() and set_fan_div() misbehave if, for example, "sensors -s" is called before any monitoring application (e.g. "sensors") is has been run. Fix the problem by always initializing the fan_div values at device bind time. Signed-off-by: Jean Delvare Cc: stable@kernel.org Acked-by: Guenter Roeck --- Reading git-diff-tree failed