summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Frederick <fabf@skynet.be>2016-12-04 12:44:59 (GMT)
committerXie Xiaobo <xiaobo.xie@nxp.com>2017-12-12 07:32:37 (GMT)
commit4778c0359780ccc54d3f05cca90c00daa4cf7d24 (patch)
treeaf428a161f47bd02ee152c52ef52103f48001073
parent526fba5049ce1f9aa0c6aa124e1049f12310359c (diff)
downloadlinux-4778c0359780ccc54d3f05cca90c00daa4cf7d24.tar.xz
soc/fsl/qman: test: use DEFINE_SPINLOCK()
Signed-off-by: Fabian Frederick <fabf@skynet.be> Signed-off-by: Scott Wood <oss@buserror.net>
-rw-r--r--drivers/soc/fsl/qbman/qman_test_stash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/soc/fsl/qbman/qman_test_stash.c b/drivers/soc/fsl/qbman/qman_test_stash.c
index b9795f3..e87b654 100644
--- a/drivers/soc/fsl/qbman/qman_test_stash.c
+++ b/drivers/soc/fsl/qbman/qman_test_stash.c
@@ -175,7 +175,7 @@ static DEFINE_PER_CPU(struct hp_cpu, hp_cpus);
/* links together the hp_cpu structs, in first-come first-serve order. */
static LIST_HEAD(hp_cpu_list);
-static spinlock_t hp_lock = __SPIN_LOCK_UNLOCKED(hp_lock);
+static DEFINE_SPINLOCK(hp_lock);
static unsigned int hp_cpu_list_length;