aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilind Arun Choudhary <milindchoudhary@gmail.com>2007-04-26 04:37:44 -0400
committerDavid S. Miller <davem@davemloft.net>2007-04-26 04:37:44 -0400
commit4ef8d0aeafda8388dd51f2671b7059192b1e5a5f (patch)
tree47886cdc9f20fb601bdace40a037335ceaa404cb
parent1c8ea5aee0b16409295d96a5e8984bd902f06a77 (diff)
[NET]: SPIN_LOCK_UNLOCKED cleanup in drivers/atm, net
SPIN_LOCK_UNLOCKED cleanup,use __SPIN_LOCK_UNLOCKED instead Signed-off-by: Milind Arun Choudhary <milindchoudhary@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/atm/atmtcp.c2
-rw-r--r--net/atm/clip.c2
-rw-r--r--net/atm/lec.c2
-rw-r--r--net/atm/mpc.c2
-rw-r--r--net/atm/signaling.c2
-rw-r--r--net/dccp/minisocks.c2
-rw-r--r--net/ipv6/mip6.c2
7 files changed, 7 insertions, 7 deletions
diff --git a/drivers/atm/atmtcp.c b/drivers/atm/atmtcp.c
index 1b9493a16ac..02ad83d6b56 100644
--- a/drivers/atm/atmtcp.c
+++ b/drivers/atm/atmtcp.c
@@ -352,7 +352,7 @@ static struct atm_dev atmtcp_control_dev = {
352 .ops = &atmtcp_c_dev_ops, 352 .ops = &atmtcp_c_dev_ops,
353 .type = "atmtcp", 353 .type = "atmtcp",
354 .number = 999, 354 .number = 999,
355 .lock = SPIN_LOCK_UNLOCKED 355 .lock = __SPIN_LOCK_UNLOCKED(atmtcp_control_dev.lock)
356}; 356};
357 357
358 358
diff --git a/net/atm/clip.c b/net/atm/clip.c
index ccba24ffb96..876b77f1474 100644
--- a/net/atm/clip.c
+++ b/net/atm/clip.c
@@ -702,7 +702,7 @@ static struct atm_dev atmarpd_dev = {
702 .ops = &atmarpd_dev_ops, 702 .ops = &atmarpd_dev_ops,
703 .type = "arpd", 703 .type = "arpd",
704 .number = 999, 704 .number = 999,
705 .lock = SPIN_LOCK_UNLOCKED 705 .lock = __SPIN_LOCK_UNLOCKED(atmarpd_dev.lock)
706}; 706};
707 707
708 708
diff --git a/net/atm/lec.c b/net/atm/lec.c
index 6d63afa5764..4dc5f2b8c43 100644
--- a/net/atm/lec.c
+++ b/net/atm/lec.c
@@ -630,7 +630,7 @@ static struct atm_dev lecatm_dev = {
630 .ops = &lecdev_ops, 630 .ops = &lecdev_ops,
631 .type = "lec", 631 .type = "lec",
632 .number = 999, /* dummy device number */ 632 .number = 999, /* dummy device number */
633 .lock = SPIN_LOCK_UNLOCKED 633 .lock = __SPIN_LOCK_UNLOCKED(lecatm_dev.lock)
634}; 634};
635 635
636/* 636/*
diff --git a/net/atm/mpc.c b/net/atm/mpc.c
index 813e08d6dc7..7c85aa551d5 100644
--- a/net/atm/mpc.c
+++ b/net/atm/mpc.c
@@ -737,7 +737,7 @@ static struct atm_dev mpc_dev = {
737 .ops = &mpc_ops, 737 .ops = &mpc_ops,
738 .type = "mpc", 738 .type = "mpc",
739 .number = 42, 739 .number = 42,
740 .lock = SPIN_LOCK_UNLOCKED 740 .lock = __SPIN_LOCK_UNLOCKED(mpc_dev.lock)
741 /* members not explicitly initialised will be 0 */ 741 /* members not explicitly initialised will be 0 */
742}; 742};
743 743
diff --git a/net/atm/signaling.c b/net/atm/signaling.c
index 31d98b57e1d..d14baaf1f4c 100644
--- a/net/atm/signaling.c
+++ b/net/atm/signaling.c
@@ -256,7 +256,7 @@ static struct atm_dev sigd_dev = {
256 .ops = &sigd_dev_ops, 256 .ops = &sigd_dev_ops,
257 .type = "sig", 257 .type = "sig",
258 .number = 999, 258 .number = 999,
259 .lock = SPIN_LOCK_UNLOCKED 259 .lock = __SPIN_LOCK_UNLOCKED(sigd_dev.lock)
260}; 260};
261 261
262 262
diff --git a/net/dccp/minisocks.c b/net/dccp/minisocks.c
index 6d235b3013d..e18e249ac49 100644
--- a/net/dccp/minisocks.c
+++ b/net/dccp/minisocks.c
@@ -27,7 +27,7 @@
27struct inet_timewait_death_row dccp_death_row = { 27struct inet_timewait_death_row dccp_death_row = {
28 .sysctl_max_tw_buckets = NR_FILE * 2, 28 .sysctl_max_tw_buckets = NR_FILE * 2,
29 .period = DCCP_TIMEWAIT_LEN / INET_TWDR_TWKILL_SLOTS, 29 .period = DCCP_TIMEWAIT_LEN / INET_TWDR_TWKILL_SLOTS,
30 .death_lock = SPIN_LOCK_UNLOCKED, 30 .death_lock = __SPIN_LOCK_UNLOCKED(dccp_death_row.death_lock),
31 .hashinfo = &dccp_hashinfo, 31 .hashinfo = &dccp_hashinfo,
32 .tw_timer = TIMER_INITIALIZER(inet_twdr_hangman, 0, 32 .tw_timer = TIMER_INITIALIZER(inet_twdr_hangman, 0,
33 (unsigned long)&dccp_death_row), 33 (unsigned long)&dccp_death_row),
diff --git a/net/ipv6/mip6.c b/net/ipv6/mip6.c
index 6ed763ee678..13b7160fb89 100644
--- a/net/ipv6/mip6.c
+++ b/net/ipv6/mip6.c
@@ -125,7 +125,7 @@ struct mip6_report_rate_limiter {
125}; 125};
126 126
127static struct mip6_report_rate_limiter mip6_report_rl = { 127static struct mip6_report_rate_limiter mip6_report_rl = {
128 .lock = SPIN_LOCK_UNLOCKED 128 .lock = __SPIN_LOCK_UNLOCKED(mip6_report_rl.lock)
129}; 129};
130 130
131static int mip6_destopt_input(struct xfrm_state *x, struct sk_buff *skb) 131static int mip6_destopt_input(struct xfrm_state *x, struct sk_buff *skb)