diff options
Diffstat (limited to 'convert/merge2pcitable.pl')
-rwxr-xr-x | convert/merge2pcitable.pl | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/convert/merge2pcitable.pl b/convert/merge2pcitable.pl index f7da9baa..8ccf4b85 100755 --- a/convert/merge2pcitable.pl +++ b/convert/merge2pcitable.pl @@ -50,13 +50,9 @@ if ($0 =~ /merge2pcitable/) } else { die 'not handled ' . $_; } - } elsif (member($d_pci->{$_}[0], ($ati_free_only)) && $d_in->{$_}) { + } elsif ($d_pci->{$_}[0] eq $ati_free_only && $d_in->{$_}) { # support added for pre-existing entry, handle: - if ($d_pci->{$_}[0] eq $ati_free_only) { - $d_pci->{$_}[0] = $ati_driver; - } else { - die 'not handled ' . $_; - } + $d_pci->{$_}[0] = $ati_driver; } } } @@ -72,13 +68,9 @@ if ($0 =~ /merge2pcitable/) } else { die 'not handled ' . $_; } - } elsif (member($d_pci->{$_}[0], ($ati_driver_vesa)) && $d_in->{$_}) { + } elsif ($d_pci->{$_}[0] eq $ati_driver_vesa && $d_in->{$_}) { # support added for pre-existing entry, handle: - if (member($d_pci->{$_}[0], ($ati_driver_vesa))) { - $d_pci->{$_}[0] = (/^....(31..|3e..|4...|5...|7...|68..|94..|95..|961.|971.|98..)/) ? $ati_driver : $ati_driver_fw; - } else { - die 'not handled ' . $_; - } + $d_pci->{$_}[0] = (/^....(31..|3e..|4...|5...|7...|68..|94..|95..|961.|971.|98..)/) ? $ati_driver : $ati_driver_fw; } } } |