]> git.itanic.dy.fi Git - linux-stable/commit
hwmon: (lm78) Request I/O ports individually for probing
authorJean Delvare <khali@linux-fr.org>
Fri, 5 Feb 2010 18:58:36 +0000 (19:58 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 23 Feb 2010 15:37:45 +0000 (07:37 -0800)
commit3f28a62b9db311d6f45a5b0d7a9b2d4daae4afe1
treee646c835f93440762a23637287325a5d5e26fb86
parent3659b59c77436fb29437cb57cdd72a26de0ded8c
hwmon: (lm78) Request I/O ports individually for probing

commit 197027e6ef830d60e10f76efc8d12bf3b6c35db5 upstream.

Different motherboards have different PNP declarations for LM78/LM79
chips. Some declare the whole range of I/O ports (8 ports), some
declare only the useful ports (2 ports at offset 5) and some declare
fancy ranges, for example 4 ports at offset 4. To properly handle all
cases, request all ports individually for probing. After we have
determined that we really have an LM78 or LM79 chip, the useful port
range will be requested again, as a single block.

This fixes the driver on the Olivetti M3000 DT 540, at least.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/hwmon/lm78.c