openwrtv3/target/linux/omap24xx/patches-3.3/251-cbus-tahvo-lock-fix.patch
Gabor Juhos 02c2f449d7 omap24xx: add support for 3.3
Compile tested only.

SVN-Revision: 31810
2012-05-18 20:22:32 +00:00

12 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);