2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-31 06:15:15 +00:00

Simplify adapter_pci_detection_sis_96x.

git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5469 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare
2008-11-30 12:42:41 +00:00
parent b899891b11
commit ead02dff68

View File

@@ -2163,22 +2163,14 @@ sub initialize_pci
# ADAPTER DETECTION #
#####################
# Not sure if we still need this for Linux 2.6?
sub adapter_pci_detection_sis_96x
{
my $driver = "";
# first, determine which driver if any...
# Add the appropriate entries to @pci_adapters
if (exists $pci_list{'1039:0016'}) {
$driver = "i2c-sis96x";
} elsif (exists $pci_list{'1039:0008'}) {
$driver = "i2c-sis5595";
}
# then, add the appropriate entries to @pci_adapters
if ($driver eq "i2c-sis5595") {
push @pci_adapters, @pci_adapters_sis5595;
} elsif ($driver eq "i2c-sis96x") {
push @pci_adapters, @pci_adapters_sis96x;
} elsif (exists $pci_list{'1039:0008'}) {
push @pci_adapters, @pci_adapters_sis5595;
}
}