]> git.itanic.dy.fi Git - linux-stable/commit
hwmon/w83627hf: Fix setting fan min right after driver load
authorJean Delvare <khali@linux-fr.org>
Mon, 15 Oct 2007 12:32:27 +0000 (14:32 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 16 Nov 2007 17:30:19 +0000 (09:30 -0800)
commita228ddd51bdfb5e22a33459cadd5f0e68ee433f6
treec3a4cd96ad3ebc889fd237542517cda8a68342e9
parentad170ecfa5027e3158e5a89136c5ca2cb77ddd44
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