it87: IT8783E/F only support three fans

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
This commit is contained in:
Guenter Roeck
2012-03-03 09:07:39 -08:00
parent da930500fb
commit 3a7f32d3b1

4
it87.c
View File

@@ -2253,8 +2253,8 @@ static void __devinit it87_init_device(struct platform_device *pdev)
it87_write_value(data, IT87_REG_FAN_16BIT,
tmp | 0x07);
}
/* IT8705F only supports three fans. */
if (data->type != it87) {
/* IT8705F and IT8783E/F only support three fans. */
if (data->type != it87 && data->type != it8783) {
if (tmp & (1 << 4))
data->has_fan |= (1 << 3); /* fan4 enabled */
if (tmp & (1 << 5))