aboutsummaryrefslogtreecommitdiffstats
path: root/net/ieee802154
diff options
context:
space:
mode:
authoralex.bluesman.smirnov@gmail.com <alex.bluesman.smirnov@gmail.com>2012-07-10 17:22:42 -0400
committerDavid S. Miller <davem@davemloft.net>2012-07-12 10:54:45 -0400
commit4d27de149ba17eb7643b6665ad3513d00d65b6c2 (patch)
tree170ee02c5c46cee737660c1ad230f5870e86e3b6 /net/ieee802154
parentd348446b8840602091872b8272855dee196f6dd5 (diff)
6lowpan: revert: add missing spin_lock_init()
Revert the commit 768f7c7c121e80f458a9d013b2e8b169e5dfb1e5 to initialize spinlock in the more preferable way and make it static to avoid sparse warning. Signed-off-by: Alexander Smirnov <alex.bluesman.smirnov@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ieee802154')
-rw-r--r--net/ieee802154/6lowpan.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/net/ieee802154/6lowpan.c b/net/ieee802154/6lowpan.c
index f4070e54d1a1..b872515f2137 100644
--- a/net/ieee802154/6lowpan.c
+++ b/net/ieee802154/6lowpan.c
@@ -123,7 +123,7 @@ struct lowpan_fragment {
123 123
124static unsigned short fragment_tag; 124static unsigned short fragment_tag;
125static LIST_HEAD(lowpan_fragments); 125static LIST_HEAD(lowpan_fragments);
126spinlock_t flist_lock; 126static DEFINE_SPINLOCK(flist_lock);
127 127
128static inline struct 128static inline struct
129lowpan_dev_info *lowpan_dev_info(const struct net_device *dev) 129lowpan_dev_info *lowpan_dev_info(const struct net_device *dev)
@@ -1186,8 +1186,6 @@ static int lowpan_newlink(struct net *src_net, struct net_device *dev,
1186 list_add_tail(&entry->list, &lowpan_devices); 1186 list_add_tail(&entry->list, &lowpan_devices);
1187 mutex_unlock(&lowpan_dev_info(dev)->dev_list_mtx); 1187 mutex_unlock(&lowpan_dev_info(dev)->dev_list_mtx);
1188 1188
1189 spin_lock_init(&flist_lock);
1190
1191 register_netdevice(dev); 1189 register_netdevice(dev);
1192 1190
1193 return 0; 1191 return 0;