OSDN Git Service

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)
commit5b0380c94a2e888b7858fbec6fc3ac623bc9b05a
tree25bfaf2ab49a7b5284dd0bb04f5d6b100fe65282
parent357b9dc6c2dbb01e835415355b70d6b47c43a102
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