]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (lm78) Fix I/O resource conflict with PNP
authorJean Delvare <khali@linux-fr.org>
Fri, 17 Oct 2008 15:51:15 +0000 (17:51 +0200)
committerJean Delvare <khali@mahadeva.delvare>
Fri, 17 Oct 2008 15:51:15 +0000 (17:51 +0200)
commit120f97ede63db8bdc07d37578b74a8b347d08dfe
tree65abe5a3fd40d9a4468550c522dd2db30ebeb988
parent736ef866321b5041588da91fe14f096f67d5f069
hwmon: (lm78) Fix I/O resource conflict with PNP

Only request I/O ports 0x295-0x296 instead of the full I/O address
range. This solves a conflict with PNP resources on a few motherboards.

Also request the I/O ports in two parts (4 low ports, 4 high ports)
during device detection, otherwise the PNP resource make the request
(and thus the detection) fail.

This is the exact same fix that was applied to driver w83781d in
March 2008 to address the same problem:
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=30c433ff9de16a3f721e827b129254a30eb72382

Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/hwmon/lm78.c