soc/fsl/qman: test: use DEFINE_SPINLOCK()
authorFabian Frederick <fabf@skynet.be>
Sun, 4 Dec 2016 12:44:59 +0000 (13:44 +0100)
committerScott Wood <oss@buserror.net>
Sat, 10 Dec 2016 05:08:52 +0000 (23:08 -0600)
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Scott Wood <oss@buserror.net>
drivers/soc/fsl/qbman/qman_test_stash.c

index b9795f39bcc8603cab8f81000b91907954c92b6f..e87b65403b6721b8bc64157feb56a369ac45f506 100644 (file)
@@ -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;