From: Lars-Peter Clausen Date: Thu, 11 Nov 2010 18:00:52 +0000 (+0100) Subject: jz4740-battery: Protect against concurrent battery readings X-Git-Tag: v2.6.37.1~127 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fcd8c1ff604201722610d43c01a1cf035e2ea273;p=pandora-kernel.git jz4740-battery: Protect against concurrent battery readings commit 8ec98fe0b4ffdedce4c1caa9fb3d550f52ad1c6b upstream. 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 Signed-off-by: Anton Vorontsov Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed