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.38-rc1~56^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8ec98fe0b4ffdedce4c1caa9fb3d550f52ad1c6b;p=pandora-kernel.git 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 Cc: stable@kernel.org Signed-off-by: Anton Vorontsov --- Reading git-diff-tree failed