From 8ade2b33fcc7f2e7f732fb5fe2d33246c884e47f Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Fri, 10 Aug 2007 16:45:21 +0000 Subject: [PATCH] Don't probe i2c-isa as if it were a regular i2c bus. This bug was introduced when getting rid of the i2cdetect dependency. I had forgotten that i2c-isa was not listed in class i2c-dev but was still listed in class i2c-adapter. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4649 7894878c-1315-0410-8ee3-d5d059ff63e0 --- CHANGES | 1 + prog/detect/sensors-detect | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGES b/CHANGES index e6c6df19..df08a9b6 100644 --- a/CHANGES +++ b/CHANGES @@ -5,6 +5,7 @@ SVN HEAD Library: Fix a memory leak on error Speed up sensors_get_ignored() a bit Module i2c-piix4: Add ATI SB700 support (2.6 backport) + Program sensors-detect: Don't probe i2c-isa as a regular i2c bus 2.10.4 (20070716) diff --git a/prog/detect/sensors-detect b/prog/detect/sensors-detect index c17f2315..af878600 100755 --- a/prog/detect/sensors-detect +++ b/prog/detect/sensors-detect @@ -2339,6 +2339,7 @@ sub initialize_i2c_adapters_list $entry = {}; # New entry $entry->{'name'} = sysfs_device_attribute("${class_dir}/i2c-$1", "name") || sysfs_device_attribute("${class_dir}/i2c-$1/device", "name"); + next if $entry->{'name'} eq "ISA main adapter"; $entry->{'driver'} = find_adapter_driver($entry->{'name'}); $i2c_adapters[$1] = $entry; }