From ac0f197059daa2481ddab278fd4db41ceb6b6ef1 Mon Sep 17 00:00:00 2001 From: Anssi Hannula Date: Thu, 5 Apr 2012 19:00:45 +0000 Subject: merge2pcitable: simplify radeon hacks (noted by tv) --- convert/merge2pcitable.pl | 16 ++++------------ 1 file 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; } } } -- cgit v1.2.1