From 2d5c5517a767cb6ea160aa26fb7c340dc7ef889f Mon Sep 17 00:00:00 2001 From: Paul Burton Date: Tue, 19 Nov 2013 17:30:38 +0000 Subject: [PATCH] MIPS: replace open-coded init_dsp There is already an init_dsp function which checks cpu_has_dsp & calls __init_dsp if it does. Make use of it instead of duplicating the same code. Signed-off-by: Paul Burton Reviewed-by: Qais Yousef Acked-by: John Crispin Patchwork: http://patchwork.linux-mips.org/patch/6148/ --- arch/mips/kernel/process.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/mips/kernel/process.c b/arch/mips/kernel/process.c index ddc76103e78c..eaa587bce786 100644 --- a/arch/mips/kernel/process.c +++ b/arch/mips/kernel/process.c @@ -67,8 +67,7 @@ void start_thread(struct pt_regs * regs, unsigned long pc, unsigned long sp) regs->cp0_status = status; clear_used_math(); clear_fpu_owner(); - if (cpu_has_dsp) - __init_dsp(); + init_dsp(); regs->cp0_epc = pc; regs->regs[29] = sp; } -- 2.39.5