mirror of
https://github.com/lm-sensors/lm-sensors
synced 2025-08-31 14:25:39 +00:00
Fix error seen in sensors-detect if i2c bus numbering is not sequential
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5870 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
@@ -5937,6 +5937,7 @@ sub generate_modprobes
|
||||
# the adapter drivers so that the numbers will be the same. If not, then
|
||||
# we only load the adapter drivers which are useful.
|
||||
foreach $adap (@i2c_adapters) {
|
||||
next unless defined $adap;
|
||||
next if $adap->{autoload};
|
||||
next if $adap->{driver} eq 'UNKNOWN';
|
||||
next if not defined $configfile and not $adap->{used};
|
||||
|
Reference in New Issue
Block a user