qed: Use DEFINE_SPINLOCK() for spinlock
authorWei Yongjun <weiyj.lk@gmail.com>
Tue, 2 Aug 2016 13:49:00 +0000 (13:49 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Aug 2016 23:05:16 +0000 (16:05 -0700)
commit0caf5b261b6360cac9b320fe7c2f43ed162a3e61
tree0fa870e1fe460d2cc41595b855549af4458cc5ba
parenta052517a8ff654f5226cf47008ebc4f7936b8f13
qed: Use DEFINE_SPINLOCK() for spinlock

spinlock can be initialized automatically with DEFINE_SPINLOCK()
rather than explicitly calling spin_lock_init().

Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com>
Acked-by: Yuval Mintz <Yuval.Mintz@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qed/qed_dev.c