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 committed 2010-10-19 20:06:45 +00:00
1 parent c288f034a1
commit 91ea5dc075
2 files changed
+2

No files matched your search

+1
View File
@@ -2,6 +2,7 @@ lm-sensors CHANGES file
-----------------------
SVN HEAD
sensors-detect: Fix error seen if I2C bus numbers are not sequential
Makefile: Check for bison and flex
sensors-detect: Improve LM90 and W83L771 detection
+1
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};