]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (it87) Use request_muxed_region
authorNat Gurumoorthy <natg@google.com>
Wed, 25 May 2011 18:43:33 +0000 (20:43 +0200)
committerJean Delvare <khali@endymion.delvare>
Wed, 25 May 2011 18:43:33 +0000 (20:43 +0200)
commit4bb2f411ab97631f4fd9093b4202e5f9db6c8903
tree25bfaf2ab49a7b5284dd0bb04f5d6b100fe65282
parent040f1d5904833b2b3afd6eb1dc7676ed4f663b52
hwmon: (it87) Use request_muxed_region

Serialize access to the hardware by using "request_muxed_region" macro
defined by Alan Cox. Call to this macro will hold off the requestor if
the resource is currently busy. "superio_enter" will return an error
if call to "request_muxed_region" fails. Rest of the code change is to
ripple an error return from superio_enter to the top level.

Signed-off-by: Nat Gurumoorthy <natg@google.com>
Acked-by: Guenter Roeck <guenter.roeck@ericsson.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/hwmon/it87.c