From: Felix Fietkau Date: Tue, 26 Apr 2011 23:05:29 +0000 (+0000) Subject: swconfig: Replace SPIN_LOCK_UNLOCKED with DEFINE_SPINLOCK X-Git-Tag: v19.07.0-rc1~27476 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=9e8cd7894436f41e19a7650f47e6832f9fad9daf;p=openwrt%2Fstaging%2Fhauke.git 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 SVN-Revision: 26770 --- 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