]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: Request the I/O regions in platform drivers
authorJean Delvare <khali@linux-fr.org>
Tue, 8 May 2007 15:21:59 +0000 (17:21 +0200)
committerJean Delvare <khali@hyperion.delvare>
Tue, 8 May 2007 15:21:59 +0000 (17:21 +0200)
commit966eb5c9a2ea570969fefbd17b8fef2c4cb7a5b2
treeb5160fd4a2b2276f7bd332f753b43f6d9752476b
parentaf31b39ee7fc2c6c6dc3a02a90e5fec9f41a51ba
hwmon: Request the I/O regions in platform drivers

My understanding of the resource management in the Linux 2.6 device
driver model is that the devices should declare their resources, and
then when a driver attaches to a device, it should request the
resources it will be using, so as to mark them busy. This is how the
PCI and PNP subsystems work, you can clearly see the two levels of
resources (declaration and request) in /proc/ioports for these
devices.

So I believe that our platform hardware monitoring drivers should
follow the same logic. At the moment, we only declare the resources
but we do not request them. This patch adds the I/O region request
and release calls.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Acked-by: Juerg Haefliger <juergh@gmail.com>
drivers/hwmon/f71805f.c
drivers/hwmon/pc87427.c
drivers/hwmon/vt1211.c