blob: 1e18dc219844e10f649583cec73305fcc0d3d83a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
--- a/drivers/cbus/retu.c
+++ b/drivers/cbus/retu.c
@@ -120,7 +120,9 @@ void retu_write_reg(struct device *child
{
struct retu *retu = dev_get_drvdata(child->parent);
+ mutex_lock(&retu->mutex);
__retu_write_reg(retu, reg, val);
+ mutex_unlock(&retu->mutex);
}
EXPORT_SYMBOL_GPL(retu_write_reg);
|