From: Huang Shijie Date: Wed, 30 Jan 2013 02:03:56 +0000 (+0800) Subject: mtd: fix the wrong timeo for panic_nand_wait() X-Git-Tag: v3.9-rc1~18^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d2559f8bc297597f8058ee75bdb8060edd5214d;p=pandora-kernel.git mtd: fix the wrong timeo for panic_nand_wait() The panic_nand_wait() expects the timeo in ms and not in jiffies. But in nand_wait(), the timeo for panic_nand_wait() is assigned with wrong value(jiffies + some delay). The timeo should be set like the panic_nand_write() does. This patch passes timeo in ms to panic_nand_wait(). And this patch also passes timeo in jiffies(converted by msecs_to_jiffies) to time_before() which makes the code more readable. Signed-off-by: Huang Shijie Signed-off-by: Artem Bityutskiy --- Reading git-diff-tree failed