mtd: nand: dynamically allocate data/OOB/ECC buffers

We shouldn't need hard macros for keeping the maximum OOB or page sizes.
To remove some dependencies on the NAND_MAX_OOBSIZE and
NAND_MAX_PAGESIZE macros, then, we can dynamically allocate the buffers
which (used to) reside in struct nand_buffers.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
mtd: mxc_nand: remove NAND_MAX{OOB,PAGE}SIZE dependency

We can dynamically allocate the data_buf based on the detected
writesize/oobsize, but this driver requires its data_buf for storing
READID data. I just picked an arbitrary, smallish size for this buffer.

This patch is completely untested.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
mtd: denali: dynamically allocate DMA buffer

This patch is compile-tested only.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
denali: tmp