summaryrefslogtreecommitdiffstats
path: root/drivers/soc
diff options
context:
space:
mode:
authorFabian Frederick <fabf@skynet.be>2016-12-04 13:44:59 +0100
committerScott Wood <oss@buserror.net>2016-12-09 23:08:52 -0600
commit39e7ac1bcf0fd1e2a607a35c30ebba4012a12d90 (patch)
treecf1788448ed0e27ca48ccd5a7e51ed92d2a1dfa4 /drivers/soc
parentec5a0171c78db604d8744095554d930efff67b69 (diff)
downloadlinux-39e7ac1bcf0fd1e2a607a35c30ebba4012a12d90.tar.bz2
soc/fsl/qman: test: use DEFINE_SPINLOCK()
Signed-off-by: Fabian Frederick <fabf@skynet.be> Signed-off-by: Scott Wood <oss@buserror.net>
Diffstat (limited to 'drivers/soc')
-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 b9795f39bcc8..e87b65403b67 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;