aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHaowen Bai <baihaowen@meizu.com>2022-05-10 17:55:27 +0800
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>2022-05-12 17:56:44 +0200
commit85663a86cdc782f6cb7090fb8bbfac00eb74d638 (patch)
tree172c71233b9f6d65aa42a2dffe0a28e5e2fcd0d5
parentMIPS: smp: optimization for flush_tlb_mm when exiting (diff)
downloadlinux-dev-85663a86cdc782f6cb7090fb8bbfac00eb74d638.tar.xz
linux-dev-85663a86cdc782f6cb7090fb8bbfac00eb74d638.zip
MIPS: VR41xx: Drop redundant spinlock initialization
slot_errbuf_lock has declared and initialized by DEFINE_SPINLOCK, so we don't need to spin_lock_init again, drop it. Signed-off-by: Haowen Bai <baihaowen@meizu.com> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
-rw-r--r--arch/mips/vr41xx/common/cmu.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/mips/vr41xx/common/cmu.c b/arch/mips/vr41xx/common/cmu.c
index b59ee5479313..e4cbe116b26d 100644
--- a/arch/mips/vr41xx/common/cmu.c
+++ b/arch/mips/vr41xx/common/cmu.c
@@ -236,8 +236,6 @@ static int __init vr41xx_cmu_init(void)
if (current_cpu_type() == CPU_VR4133)
cmuclkmsk2 = cmu_read(CMUCLKMSK2);
- spin_lock_init(&cmu_lock);
-
return 0;
}