projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d348446
)
6lowpan: revert: add missing spin_lock_init()
author
[email protected]
<
[email protected]
>
Tue, 10 Jul 2012 21:22:42 +0000
(21:22 +0000)
committer
David S. Miller
<
[email protected]
>
Thu, 12 Jul 2012 14:54:45 +0000
(07:54 -0700)
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 <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/ieee802154/6lowpan.c
patch
|
blob
|
history
diff --git
a/net/ieee802154/6lowpan.c
b/net/ieee802154/6lowpan.c
index f4070e54d1a1098def2f0456fb4a58d0821d8917..b872515f213785a043f9eae48218813ba5137675 100644
(file)
--- a/
net/ieee802154/6lowpan.c
+++ b/
net/ieee802154/6lowpan.c
@@
-123,7
+123,7
@@
struct lowpan_fragment {
static unsigned short fragment_tag;
static LIST_HEAD(lowpan_fragments);
-s
pinlock_t flist_lock
;
+s
tatic DEFINE_SPINLOCK(flist_lock)
;
static inline struct
lowpan_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,
list_add_tail(&entry->list, &lowpan_devices);
mutex_unlock(&lowpan_dev_info(dev)->dev_list_mtx);
- spin_lock_init(&flist_lock);
-
register_netdevice(dev);
return 0;