hwmon/w83627hf: Fix setting fan min right after driver load
commitf5000270cfd5087ac68477766065445c5fdc343b
authorJean Delvare <khali@linux-fr.org>
Mon, 15 Oct 2007 12:32:27 +0000 (15 14:32 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 2 Nov 2007 15:44:15 +0000 (2 08:44 -0700)
tree6ca31b6ae9fbc4fa6f725a5e194106491187e269
parentf3c97cd833e15aa67cf24e6ac84a81ce02a0aca0
hwmon/w83627hf: Fix setting fan min right after driver load

Already in Linus' tree:
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=c09c5184a26158da32801e89d5849d774605f0dd

We need to read the fan clock dividers at initialization time,
otherwise the code in store_fan_min() may use uninitialized values.
That's pretty much the same bug and same fix as for the w83627ehf
driver last month.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Mark M. Hoffman <mhoffman@lightlink.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/hwmon/w83627hf.c