2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-31 22:35:23 +00:00

Properly handle Super-I/O chips without logical device. Just report

that we can't support the chip yet, instead of spitting I/O errors.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@6016 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare
2012-01-31 12:51:31 +00:00
parent 2e65243b16
commit c9c0cb604f
2 changed files with 5 additions and 0 deletions

View File

@@ -3766,6 +3766,10 @@ sub probe_superio
print "\n (hardware monitoring capabilities accessible via SMBus only)\n";
return FEAT_SMBUS;
}
if (!exists $chip->{logdev}) {
print "\n (no support yet)\n";
return 0;
}
# Switch to the sensor logical device
outb($addrreg, $superio{logdevreg});