jz4740-battery: Protect against concurrent battery readings

We can not handle more then one ADC request at a time to the battery.
The patch adds a mutex around the ADC read code to ensure this.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Cc: stable@kernel.org
Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
This commit is contained in:
Lars-Peter Clausen 2010-11-11 19:00:52 +01:00 • committed by Anton Vorontsov
commit 8ec98fe0b4