9
0
Fork 0

mtd nand omap: use NAND_OWN_BUFFERS option

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Sascha Hauer 2011-11-08 13:17:44 +01:00
parent 624a44a618
commit 03f18f3115
1 changed files with 3 additions and 3 deletions

View File

@ -765,9 +765,6 @@ static int omap_gpmc_eccmode(struct gpmc_nand_info *oinfo,
oinfo->ecc_mode = mode;
if (nand->buffers)
kfree(nand->buffers);
/* second phase scan */
if (nand_scan_tail(minfo))
return -ENXIO;
@ -897,6 +894,9 @@ static int gpmc_nand_probe(struct device_d *pdev)
/* Dont do a bbt scan at the start */
nand->options |= NAND_SKIP_BBTSCAN;
nand->options |= NAND_OWN_BUFFERS;
nand->buffers = xzalloc(sizeof(*nand->buffers));
/* State my controller */
nand->controller = &oinfo->controller;