diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2012-03-11 16:49:33 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2012-03-11 16:49:33 +0000 |
commit | 1fb98d5708373a956baf732a493fc2810a238386 (patch) | |
tree | dc8e2aaaa828ac7152d0183e9b8c7954a958a61c /target/linux | |
parent | c853b6d0e6c72425a0dfa82a44355a0b2632e08d (diff) | |
download | master-187ad058-1fb98d5708373a956baf732a493fc2810a238386.tar.gz master-187ad058-1fb98d5708373a956baf732a493fc2810a238386.tar.bz2 master-187ad058-1fb98d5708373a956baf732a493fc2810a238386.zip |
generic: ar8216: add lockep assertion to ar8216_rmw
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30883 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux')
-rw-r--r-- | target/linux/generic/files/drivers/net/phy/ar8216.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/target/linux/generic/files/drivers/net/phy/ar8216.c b/target/linux/generic/files/drivers/net/phy/ar8216.c index 1521ea317a..c199ac178c 100644 --- a/target/linux/generic/files/drivers/net/phy/ar8216.c +++ b/target/linux/generic/files/drivers/net/phy/ar8216.c @@ -29,6 +29,7 @@ #include <linux/phy.h> #include <linux/netdevice.h> #include <linux/etherdevice.h> +#include <linux/lockdep.h> #include "ar8216.h" /* size of the vlan table */ @@ -122,6 +123,8 @@ ar8216_rmw(struct ar8216_priv *priv, int reg, u32 mask, u32 val) { u32 v; + lockdep_assert_held(&priv->reg_mutex); + v = priv->read(priv, reg); v &= ~mask; v |= val; |