From: Josh Wu Date: Wed, 7 Aug 2013 09:58:11 +0000 (+0800) Subject: mtd: atmel_nand: move the sanity check to the beginning of pmecc_enable() X-Git-Tag: v3.12-rc1~82^2~60 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1fad0e8b9a8889f6ca79be570e06d00785f15aed;p=pandora-kernel.git mtd: atmel_nand: move the sanity check to the beginning of pmecc_enable() It is better to do the sanity check for the parameter before any hardware operation. Signed-off-by: Josh Wu Signed-off-by: Brian Norris Signed-off-by: David Woodhouse --- Reading git-diff-tree failed