1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2025-01-04 02:20:15 +02:00
openwrt-xburst/target/linux/omap24xx/patches-2.6.38/505-retu-write-lock.patch
mb 43d9b85117 omap24xx: Add 2.6.38 files
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25746 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-02-26 23:52:18 +00:00

15 lines
486 B
Diff

Index: linux-2.6.38-rc6/drivers/cbus/retu.c
===================================================================
--- linux-2.6.38-rc6.orig/drivers/cbus/retu.c 2011-02-26 23:23:34.014429906 +0100
+++ linux-2.6.38-rc6/drivers/cbus/retu.c 2011-02-26 23:25:18.905358127 +0100
@@ -120,7 +120,9 @@
{
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);