summaryrefslogtreecommitdiff
path: root/target/linux/omap24xx/patches-3.1/251-cbus-tahvo-lock-fix.patch
blob: be406716ae9a7574c9d292251483455c596317bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--- a/drivers/cbus/tahvo.c
+++ b/drivers/cbus/tahvo.c
@@ -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);