projects
/
15.05
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a32b7a
)
swconfig: Replace SPIN_LOCK_UNLOCKED with DEFINE_SPINLOCK
author
Felix Fietkau
<nbd@openwrt.org>
Tue, 26 Apr 2011 23:05:29 +0000
(23:05 +0000)
committer
Felix Fietkau
<nbd@openwrt.org>
Tue, 26 Apr 2011 23:05:29 +0000
(23:05 +0000)
SPIN_LOCK_UNLOCKED has been deprecated since 2.6.19 and will get removed
in 2.6.39, so replace it with DEFINE_SPINLOCK().
Signed-off-by: Jonas Gorski <jonas.gorski+openwrt@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26770
3c298f89
-4303-0410-b956-
a3cf2f4a3e73
target/linux/generic/files/drivers/net/phy/swconfig.c
patch
|
blob
|
history
diff --git
a/target/linux/generic/files/drivers/net/phy/swconfig.c
b/target/linux/generic/files/drivers/net/phy/swconfig.c
index
799fc29
..
16afea0
100644
(file)
--- a/
target/linux/generic/files/drivers/net/phy/swconfig.c
+++ b/
target/linux/generic/files/drivers/net/phy/swconfig.c
@@
-36,7
+36,7
@@
MODULE_LICENSE("GPL");
static int swdev_id = 0;
static struct list_head swdevs;
-static
spinlock_t swdevs_lock = SPIN_LOCK_UNLOCKED
;
+static
DEFINE_SPINLOCK(swdevs_lock)
;
struct swconfig_callback;
struct swconfig_callback