2
0
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:
Guenter Roeck
2010-10-19 20:06:45 +00:00
parent c288f034a1
commit 91ea5dc075
2 changed files with 2 additions and 0 deletions

View File

@@ -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};