2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-30 05:48:07 +00:00

Add support for platform devices with no ID.

git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4878 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare 2007-09-24 15:22:01 +00:00
parent d4c69b1468
commit 38d16d299d

View File

@ -404,8 +404,12 @@ static int sensors_read_one_sysfs_chip(struct sysfs_device *dev)
entry.chip.addr = (domain << 16) + (bus << 8) + (slot << 3) + fn;
entry.chip.bus.type = SENSORS_BUS_TYPE_PCI;
entry.chip.bus.nr = 0;
} else
goto exit_free;
} else {
/* platform device with no id? */
entry.chip.bus.type = SENSORS_BUS_TYPE_ISA;
entry.chip.bus.nr = 0;
entry.chip.addr = 0;
}
if (sensors_read_dynamic_chip(&entry, dev) < 0)
goto exit_free;