From: Fabian Frederick Date: Sun, 4 Dec 2016 12:44:59 +0000 (+0100) Subject: soc/fsl/qman: test: use DEFINE_SPINLOCK() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=39e7ac1bcf0fd1e2a607a35c30ebba4012a12d90;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git soc/fsl/qman: test: use DEFINE_SPINLOCK() Signed-off-by: Fabian Frederick Signed-off-by: Scott Wood --- 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;