From: Morten Thunberg Svendsen Date: Wed, 6 Jan 2010 09:48:18 +0000 (+0100) Subject: mtd: tests: fix read, speed and stress tests on NOR flash X-Git-Tag: v2.6.33-rc6~33^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f5e2bae0aad03164ffc7ce9dfeee6608e2c87dba;p=pandora-kernel.git mtd: tests: fix read, speed and stress tests on NOR flash Before using block_isbad() check if mtd->block_isbad() is defined. Calculating pgcnt must be done using pgsize defined to 512 on NOR and mtd->writesize for NAND, not using mtd->writesize directly. Signed-off-by: Morten Thunberg Svendsen Acked-by: Artem Bityutskiy Signed-off-by: David Woodhouse --- Reading git-diff-tree failed