summaryrefslogtreecommitdiff
path: root/target/linux/generic/files
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-04-26 23:05:29 +0000
committerFelix Fietkau <nbd@openwrt.org>2011-04-26 23:05:29 +0000
commit9e8cd7894436f41e19a7650f47e6832f9fad9daf (patch)
tree18f1ab726b8be8a1f851bd4a934b31bf3acb682d /target/linux/generic/files
parent6b376db844ec12e8ee49dc44e602e4be251d2f9d (diff)
downloadmtk-20170518-9e8cd7894436f41e19a7650f47e6832f9fad9daf.zip
mtk-20170518-9e8cd7894436f41e19a7650f47e6832f9fad9daf.tar.gz
mtk-20170518-9e8cd7894436f41e19a7650f47e6832f9fad9daf.tar.bz2
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> SVN-Revision: 26770
Diffstat (limited to 'target/linux/generic/files')
-rw-r--r--target/linux/generic/files/drivers/net/phy/swconfig.c2
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 799fc29..16afea0 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