mtd: mxc-nand: kill the NAND_MAX_PAGESIZE/NAND_MAX_OOBSIZE
authorHuang Shijie <shijie8@gmail.com>
Fri, 20 Dec 2013 16:02:27 +0000 (00:02 +0800)
committerBrian Norris <computersforpeace@gmail.com>
Sat, 11 Jan 2014 20:20:06 +0000 (12:20 -0800)
We kill the NAND_MAX_PAGESIZE/NAND_MAX_OOBSIZE by the following way:
 1.) Before we call the nand_scan_ident, we allocate a temporary buffer
     whose size is PAGE_SIZE.
 2.) After we finish the nand_scan_ident, we have already getten the
     page size and oob size. We will allocate the right buffer size
     again.

Signed-off-by: Huang Shijie <shijie8@gmail.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>

No differences found