mirror of
https://github.com/lm-sensors/lm-sensors
synced 2025-08-30 13:57:41 +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:
parent
d4c69b1468
commit
38d16d299d
@ -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.addr = (domain << 16) + (bus << 8) + (slot << 3) + fn;
|
||||||
entry.chip.bus.type = SENSORS_BUS_TYPE_PCI;
|
entry.chip.bus.type = SENSORS_BUS_TYPE_PCI;
|
||||||
entry.chip.bus.nr = 0;
|
entry.chip.bus.nr = 0;
|
||||||
} else
|
} else {
|
||||||
goto exit_free;
|
/* 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)
|
if (sensors_read_dynamic_chip(&entry, dev) < 0)
|
||||||
goto exit_free;
|
goto exit_free;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user