Changeset 2526

Show
Ignore:
Timestamp:
05/12/04 21:41:37 (9 years ago)
Author:
khali
Message:

Fix double detection of ISA chips.

No, don't ask for drivers, we're busy.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/prog/detect/sensors-detect

    r2509 r2526  
    23912391  # Find out whether our new entry should go into the detected or the 
    23922392  # misdetected list. We only compare main isa_addr here, of course. 
     2393  # (Khali 2004-05-12) If the driver is the same, the "misdetected" 
     2394  # entry is simply deleted; same we do for I2C chips. 
    23932395  foreach $main_entry (@chips_detected) { 
    23942396    $detected_ref = $main_entry->{detected}; 
     
    23982400          $detected_ref->[$i]->{isa_addr} == $datahash->{isa_addr}) { 
    23992401        if ($detected_ref->[$i]->{conf} >= $datahash->{conf}) { 
    2400           push @$new_misdetected_ref, $datahash; 
     2402          push @$new_misdetected_ref, $datahash 
     2403            unless $main_entry->{driver} eq $chipdriver; 
    24012404        } else { 
    2402           push @$misdetected_ref,$detected_ref->[$i]; 
     2405          push @$misdetected_ref,$detected_ref->[$i] 
     2406            unless $main_entry->{driver} eq $chipdriver; 
    24032407          splice @$detected_ref, $i,1; 
    24042408          push @$new_detected_ref, $datahash; 
     
    43544358    next if not @{$chip->{detected}}; 
    43554359    if ($chip->{driver} eq "to-be-written") { 
    4356       $modprobes .= "# no driver for $chip->{detected}[0]{chipname} yet, ask us for one!\n"; 
     4360      $modprobes .= "# no driver for $chip->{detected}[0]{chipname} yet\n"; 
    43574361    } else { 
    43584362      $modprobes .= "modprobe $chip->{driver}\n";