be406716ae9a7574c9d292251483455c596317bd
[openwrt.git] / target / linux / omap24xx / patches-3.1 / 251-cbus-tahvo-lock-fix.patch
1 --- a/drivers/cbus/tahvo.c
2 +++ b/drivers/cbus/tahvo.c
3 @@ -104,7 +104,9 @@ void tahvo_write_reg(struct device *chil
4  {
5         struct tahvo            *tahvo = dev_get_drvdata(child->parent);
6  
7 +       mutex_lock(&tahvo->mutex);
8         __tahvo_write_reg(tahvo, reg, val);
9 +       mutex_unlock(&tahvo->mutex);
10  }
11  EXPORT_SYMBOL(tahvo_write_reg);
12