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

i2c-isa will soon be gone.

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4090 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare
2006-08-11 07:34:32 +00:00
parent 0e3ba1d1a1
commit 00980f98fd

View File

@@ -5168,7 +5168,7 @@ sub generate_modprobes
local $_;
while (<INPUTFILE>) {
my ($dev_nr, $type, $adap) = /^i2c-(\d+)\s+(\S+)\s+(.*?) *(\t|$)/;
next if ($type eq "dummy");
next if ($type eq "dummy" || $type eq "isa");
$adapters[$dev_nr]->{driver} = find_adapter_driver($adap);
$adapters[$dev_nr]->{adapname} = $adap;
}
@@ -5216,7 +5216,9 @@ sub generate_modprobes
last;
}
}
$modprobes .= "modprobe i2c-isa\n" if ($isa);
# i2c-isa is loaded automatically (as a dependency) since 2.6.14,
# and will soon be gone.
$modprobes .= "modprobe i2c-isa\n" if ($isa && !kernel_version_at_least(2, 6, 18));
if ($bmcsensors) {
$modprobes .= "# You must also install and load the IPMI modules\n";
$modprobes .= "modprobe i2c-ipmi\n";