mirror of
https://github.com/lm-sensors/lm-sensors
synced 2025-09-03 07:45:30 +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:
@@ -5168,7 +5168,7 @@ sub generate_modprobes
|
|||||||
local $_;
|
local $_;
|
||||||
while (<INPUTFILE>) {
|
while (<INPUTFILE>) {
|
||||||
my ($dev_nr, $type, $adap) = /^i2c-(\d+)\s+(\S+)\s+(.*?) *(\t|$)/;
|
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]->{driver} = find_adapter_driver($adap);
|
||||||
$adapters[$dev_nr]->{adapname} = $adap;
|
$adapters[$dev_nr]->{adapname} = $adap;
|
||||||
}
|
}
|
||||||
@@ -5216,7 +5216,9 @@ sub generate_modprobes
|
|||||||
last;
|
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) {
|
if ($bmcsensors) {
|
||||||
$modprobes .= "# You must also install and load the IPMI modules\n";
|
$modprobes .= "# You must also install and load the IPMI modules\n";
|
||||||
$modprobes .= "modprobe i2c-ipmi\n";
|
$modprobes .= "modprobe i2c-ipmi\n";
|
||||||
|
Reference in New Issue
Block a user