mirror of
https://github.com/lm-sensors/lm-sensors
synced 2025-08-31 06:15:15 +00:00
As of kernel 2.6.28, alias detection is handled by kernel drivers
directly, so module options are no longer needed. git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5432 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
@@ -5249,12 +5249,16 @@ sub generate_modprobes
|
||||
}
|
||||
|
||||
# Handle aliases
|
||||
foreach $detection (@{$chip->{detected}}) {
|
||||
if (exists $detection->{i2c_driver} and
|
||||
exists $detection->{isa_addr} and
|
||||
exists $i2c_adapters[$detection->{i2c_devnr}]->{nr_later}) {
|
||||
push @optionlist, $i2c_adapters[$detection->{i2c_devnr}]->{nr_later},
|
||||
$detection->{i2c_addr};
|
||||
# As of kernel 2.6.28, alias detection is handled by kernel drivers
|
||||
# directly, so module options are no longer needed.
|
||||
unless (kernel_version_at_least(2, 6, 28)) {
|
||||
foreach $detection (@{$chip->{detected}}) {
|
||||
if (exists $detection->{i2c_driver} and
|
||||
exists $detection->{isa_addr} and
|
||||
exists $i2c_adapters[$detection->{i2c_devnr}]->{nr_later}) {
|
||||
push @optionlist, $i2c_adapters[$detection->{i2c_devnr}]->{nr_later},
|
||||
$detection->{i2c_addr};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user