From: Huang Shijie Date: Mon, 27 Sep 2010 02:43:53 +0000 (+0800) Subject: mtd: add init_size hook for NAND driver X-Git-Tag: v2.6.37-rc1~22^2~46 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=12a40a57f762f569f58a393437d8c13864db390a;p=pandora-kernel.git mtd: add init_size hook for NAND driver Not all the NAND devices have all the information in additional id bytes. So add a hook in the nand_chip{} is a good method to calculate the right value of oobsize, erasesize and so on. Without the hook,you will get the wrong value, and you have to hack in the ->scan_bbt() to change the wrong value which make the code mess. Signed-off-by: Huang Shijie Signed-off-by: David Woodhouse --- Reading git-diff-tree failed