]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdeb3e20f15ae32d7abc4405b8a9f6b7363c2793d
tree0fa870e1fe460d2cc41595b855549af4458cc5ba
parent5bc2ca02ba8e82de3e844f58f491c31b76c35046
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