Commit 4ef8d0ae authored by Milind Arun Choudhary's avatar Milind Arun Choudhary Committed by David S. Miller

[NET]: SPIN_LOCK_UNLOCKED cleanup in drivers/atm, net

SPIN_LOCK_UNLOCKED cleanup,use __SPIN_LOCK_UNLOCKED instead
Signed-off-by: default avatarMilind Arun Choudhary <milindchoudhary@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1c8ea5ae
...@@ -352,7 +352,7 @@ static struct atm_dev atmtcp_control_dev = { ...@@ -352,7 +352,7 @@ static struct atm_dev atmtcp_control_dev = {
.ops = &atmtcp_c_dev_ops, .ops = &atmtcp_c_dev_ops,
.type = "atmtcp", .type = "atmtcp",
.number = 999, .number = 999,
.lock = SPIN_LOCK_UNLOCKED .lock = __SPIN_LOCK_UNLOCKED(atmtcp_control_dev.lock)
}; };
......
...@@ -702,7 +702,7 @@ static struct atm_dev atmarpd_dev = { ...@@ -702,7 +702,7 @@ static struct atm_dev atmarpd_dev = {
.ops = &atmarpd_dev_ops, .ops = &atmarpd_dev_ops,
.type = "arpd", .type = "arpd",
.number = 999, .number = 999,
.lock = SPIN_LOCK_UNLOCKED .lock = __SPIN_LOCK_UNLOCKED(atmarpd_dev.lock)
}; };
......
...@@ -630,7 +630,7 @@ static struct atm_dev lecatm_dev = { ...@@ -630,7 +630,7 @@ static struct atm_dev lecatm_dev = {
.ops = &lecdev_ops, .ops = &lecdev_ops,
.type = "lec", .type = "lec",
.number = 999, /* dummy device number */ .number = 999, /* dummy device number */
.lock = SPIN_LOCK_UNLOCKED .lock = __SPIN_LOCK_UNLOCKED(lecatm_dev.lock)
}; };
/* /*
......
...@@ -737,7 +737,7 @@ static struct atm_dev mpc_dev = { ...@@ -737,7 +737,7 @@ static struct atm_dev mpc_dev = {
.ops = &mpc_ops, .ops = &mpc_ops,
.type = "mpc", .type = "mpc",
.number = 42, .number = 42,
.lock = SPIN_LOCK_UNLOCKED .lock = __SPIN_LOCK_UNLOCKED(mpc_dev.lock)
/* members not explicitly initialised will be 0 */ /* members not explicitly initialised will be 0 */
}; };
......
...@@ -256,7 +256,7 @@ static struct atm_dev sigd_dev = { ...@@ -256,7 +256,7 @@ static struct atm_dev sigd_dev = {
.ops = &sigd_dev_ops, .ops = &sigd_dev_ops,
.type = "sig", .type = "sig",
.number = 999, .number = 999,
.lock = SPIN_LOCK_UNLOCKED .lock = __SPIN_LOCK_UNLOCKED(sigd_dev.lock)
}; };
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
struct inet_timewait_death_row dccp_death_row = { struct inet_timewait_death_row dccp_death_row = {
.sysctl_max_tw_buckets = NR_FILE * 2, .sysctl_max_tw_buckets = NR_FILE * 2,
.period = DCCP_TIMEWAIT_LEN / INET_TWDR_TWKILL_SLOTS, .period = DCCP_TIMEWAIT_LEN / INET_TWDR_TWKILL_SLOTS,
.death_lock = SPIN_LOCK_UNLOCKED, .death_lock = __SPIN_LOCK_UNLOCKED(dccp_death_row.death_lock),
.hashinfo = &dccp_hashinfo, .hashinfo = &dccp_hashinfo,
.tw_timer = TIMER_INITIALIZER(inet_twdr_hangman, 0, .tw_timer = TIMER_INITIALIZER(inet_twdr_hangman, 0,
(unsigned long)&dccp_death_row), (unsigned long)&dccp_death_row),
......
...@@ -125,7 +125,7 @@ struct mip6_report_rate_limiter { ...@@ -125,7 +125,7 @@ struct mip6_report_rate_limiter {
}; };
static struct mip6_report_rate_limiter mip6_report_rl = { static struct mip6_report_rate_limiter mip6_report_rl = {
.lock = SPIN_LOCK_UNLOCKED .lock = __SPIN_LOCK_UNLOCKED(mip6_report_rl.lock)
}; };
static int mip6_destopt_input(struct xfrm_state *x, struct sk_buff *skb) static int mip6_destopt_input(struct xfrm_state *x, struct sk_buff *skb)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment