Don't choke on unrecognized devices, part 2. In case hwmon devices have

no underlying physical device, just ignore them. This happened in kernel
2.6.25-rc5-git4 with the newly added generic thermal zone device.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5147 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare committed 2008-03-16 17:30:20 +00:00
1 parent 10c689aac4
commit 46c0ae46d7
2 files changed
+4 -5

No files matched your search

+2 -1
View File
@@ -2,12 +2,13 @@ lm_sensors CHANGES file
-----------------------
SVN-HEAD
Library: Don't choke on unrecognized devices, part 2
Program sensors-detect: New device ID for the SMSC SCH5317
2.10.6 "Welcome Home Lina" (20080306)
Library: Fix fschrc and fschmd support
Fix sysfs presence detection
Don't choke on unrecognized devices (#2087)
Don't choke on unrecognized devices, part 1 (#2087)
Fix lm93 vid2 access (#2295)
No in1 on w83783s
Support DOS-style configuration files again (#2284)
+2 -4
View File
@@ -182,10 +182,8 @@ int sensors_read_sysfs_chips(void)
dlist_for_each_data(clsdevs, clsdev, struct sysfs_class_device) {
struct sysfs_device *dev;
if (!(dev = sysfs_get_classdev_device(clsdev))) {
ret = -SENSORS_ERR_PROC;
goto exit;
}
if (!(dev = sysfs_get_classdev_device(clsdev)))
continue;
if ((ret = sensors_read_one_sysfs_chip(dev)))
goto exit;
}