mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-15 12:56:14 +02:00
13 lines
313 B
Diff
13 lines
313 B
Diff
|
--- 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);
|
||
|
|