diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-04-26 23:05:29 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-04-26 23:05:29 +0000 |
commit | e0cb25837f181bd25d8393e6f9c7401b4ddc51ad (patch) | |
tree | 4b9575d5ed43605d7faccfc664cf494f28d5ea40 /target | |
parent | 5a32b7a3729da6fe5ff49f3c170f3d8810a2b73d (diff) | |
download | upstream-e0cb25837f181bd25d8393e6f9c7401b4ddc51ad.tar.gz upstream-e0cb25837f181bd25d8393e6f9c7401b4ddc51ad.tar.bz2 upstream-e0cb25837f181bd25d8393e6f9c7401b4ddc51ad.zip |
swconfig: Replace SPIN_LOCK_UNLOCKED with DEFINE_SPINLOCK
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
Diffstat (limited to 'target')
-rw-r--r-- | target/linux/generic/files/drivers/net/phy/swconfig.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/generic/files/drivers/net/phy/swconfig.c b/target/linux/generic/files/drivers/net/phy/swconfig.c index 799fc29d17..16afea0af8 100644 --- 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 |