linux-mips
[Top] [All Lists]

Re: [PATCH] Make it compile.

To: Alexey Zaytsev <zaytsev@altell.ru>
Subject: Re: [PATCH] Make it compile.
From: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Date: Wed, 10 Jun 2009 18:15:01 +0400
Cc: Ralf Baechle <ralf@linux-mips.org>, linux-mips@linux-mips.org
In-reply-to: <20090610140002.17913.33485.stgit@bzz.altell.local>
Organization: MontaVista Software Inc.
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <20090610140002.17913.33485.stgit@bzz.altell.local>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mozilla/5.0 (X11; U; Linux i686; rv:1.7.2) Gecko/20040803
Hello.

Alexey Zaytsev wrote:

Signed-off-by: Alexey Zaytsev <zaytsev@altell.ru>

diff --git a/arch/mips/lib/delay.c b/arch/mips/lib/delay.c
index f69c6b5..222bed0 100644
--- a/arch/mips/lib/delay.c
+++ b/arch/mips/lib/delay.c
@@ -51,6 +51,6 @@ void __ndelay(unsigned long ns)
 {
        unsigned int lpj = current_cpu_data.udelay_val;
- __delay((us * 0x00000005 * HZ * lpj) >> 32);
+       __delay((ns * 0x00000005 * HZ * lpj) >> 32);

   This (and more) is already fixed by the patch posted by Atsushi Nemoto.

 }
 EXPORT_SYMBOL(__ndelay);

WBR, Sergei

<Prev in Thread] Current Thread [Next in Thread>