Changeset 5469

Show
Ignore:
Timestamp:
11/30/08 13:42:41 (6 years ago)
Author:
khali
Message:

Simplify adapter_pci_detection_sis_96x.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/branches/lm-sensors-3.0.0/prog/detect/sensors-detect

    r5468 r5469  
    21642164##################### 
    21652165 
     2166# Not sure if we still need this for Linux 2.6? 
    21662167sub adapter_pci_detection_sis_96x 
    21672168{ 
    2168         my $driver = ""; 
    2169  
    2170         # first, determine which driver if any... 
     2169        # Add the appropriate entries to @pci_adapters 
    21712170        if (exists $pci_list{'1039:0016'}) { 
    2172                 $driver = "i2c-sis96x"; 
     2171                push @pci_adapters, @pci_adapters_sis96x; 
    21732172        } elsif (exists $pci_list{'1039:0008'}) { 
    2174                 $driver = "i2c-sis5595"; 
    2175         } 
    2176  
    2177         # then, add the appropriate entries to @pci_adapters 
    2178         if ($driver eq "i2c-sis5595") { 
    21792173                push @pci_adapters, @pci_adapters_sis5595; 
    2180         } elsif ($driver eq "i2c-sis96x") { 
    2181                 push @pci_adapters, @pci_adapters_sis96x; 
    21822174        } 
    21832175}