aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/omap24xx/patches-3.1/251-cbus-tahvo-lock-fix.patch
diff options
context:
space:
mode:
authorMichael Büsch <mb@bu3sch.de>2011-11-05 16:10:18 +0000
committerMichael Büsch <mb@bu3sch.de>2011-11-05 16:10:18 +0000
commit05ce57c00544ae4ba9b990a58a3ecceeb16aa8a6 (patch)
tree0cc183c64b2a6c14fdb37e9ac27d73ea13e3a10b /target/linux/omap24xx/patches-3.1/251-cbus-tahvo-lock-fix.patch
parent6288ac7ed4a153613e4a28ae40c7b60e80b18dde (diff)
downloadupstream-05ce57c00544ae4ba9b990a58a3ecceeb16aa8a6.tar.gz
upstream-05ce57c00544ae4ba9b990a58a3ecceeb16aa8a6.tar.bz2
upstream-05ce57c00544ae4ba9b990a58a3ecceeb16aa8a6.zip
omap24xx: Add cbus tahvo locking fix.
SVN-Revision: 28767
Diffstat (limited to 'target/linux/omap24xx/patches-3.1/251-cbus-tahvo-lock-fix.patch')
-rw-r--r--target/linux/omap24xx/patches-3.1/251-cbus-tahvo-lock-fix.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/target/linux/omap24xx/patches-3.1/251-cbus-tahvo-lock-fix.patch b/target/linux/omap24xx/patches-3.1/251-cbus-tahvo-lock-fix.patch
new file mode 100644
index 0000000000..ac3bd04a8a
--- /dev/null
+++ b/target/linux/omap24xx/patches-3.1/251-cbus-tahvo-lock-fix.patch
@@ -0,0 +1,14 @@
+Index: linux-3.1/drivers/cbus/tahvo.c
+===================================================================
+--- linux-3.1.orig/drivers/cbus/tahvo.c 2011-11-05 17:03:39.598846119 +0100
++++ linux-3.1/drivers/cbus/tahvo.c 2011-11-05 17:04:36.274768324 +0100
+@@ -104,7 +104,9 @@ void tahvo_write_reg(struct device *chil
+ {
+ struct tahvo *tahvo = dev_get_drvdata(child->parent);
+
++ mutex_lock(&tahvo->mutex);
+ __tahvo_write_reg(tahvo, reg, val);
++ mutex_unlock(&tahvo->mutex);
+ }
+ EXPORT_SYMBOL(tahvo_write_reg);
+