mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
omap24xx: Add cbus tahvo locking fix.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28767 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
Index: linux-3.1/drivers/cbus/tahvo.c
|
||||
===================================================================
|
||||
--- linux-3.1.orig/drivers/cbus/tahvo.c 2011-11-05 17:03:39.598846119 +0100
|
||||
+++ linux-3.1/drivers/cbus/tahvo.c 2011-11-05 17:04:36.274768324 +0100
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user