Changeset 2949

Show
Ignore:
Timestamp:
03/27/05 13:58:23 (10 years ago)
Author:
khali
Message:

Skip fan_div initialization for disabled fans. This is a
backport from Linux 2.6.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/kernel/chips/pc87360.c

    r2867 r2949  
    666666        /* Fan clock dividers may be needed before any data is read */ 
    667667        for (i = 0; i < data->fannr; i++) { 
    668                 data->fan_status[i] = pc87360_read_value(data, LD_FAN, 
    669                                       NO_BANK, PC87360_REG_FAN_STATUS(i)); 
     668                if (FAN_CONFIG_MONITOR(data->fan_conf, i)) 
     669                        data->fan_status[i] = pc87360_read_value(data, 
     670                                              LD_FAN, NO_BANK, 
     671                                              PC87360_REG_FAN_STATUS(i)); 
    670672        } 
    671673