From: Paul Burton Date: Tue, 19 Nov 2013 17:30:38 +0000 (+0000) Subject: MIPS: replace open-coded init_dsp X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a3056b1ca5db9103e079f3d8d9e386b3590b9250;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: John Crispin Patchwork: http://patchwork.linux-mips.org/patch/6148/ --- diff --git a/arch/mips/kernel/process.c b/arch/mips/kernel/process.c index 747a6cfbb709..6ae540e133b2 100644 --- a/arch/mips/kernel/process.c +++ b/arch/mips/kernel/process.c @@ -64,8 +64,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; }