projects
/
openwrt
/
staging
/
florian.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
swconfig: Replace SPIN_LOCK_UNLOCKED with DEFINE_SPINLOCK
[openwrt/staging/florian.git]
/
target
/
linux
/
generic
/
files
/
drivers
/
net
/
phy
/
swconfig.c
diff --git
a/target/linux/generic/files/drivers/net/phy/swconfig.c
b/target/linux/generic/files/drivers/net/phy/swconfig.c
index 799fc29d17560f86618cfcba08eacca9e53013ae..16afea0af86d45d08257e606da4d40b1f9dcf9ee 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