OneNAND: Add missing mtd info struct before calling onenand_erase()
authorStefan Roese <sr@denx.de>
Thu, 27 Nov 2008 13:11:37 +0000 (14:11 +0100)
committerScott Wood <scottwood@freescale.com>
Tue, 2 Dec 2008 19:48:15 +0000 (13:48 -0600)
commit5e46b1e54112f4b7fd5185665e571510132c12a7
treed4e75ac0932de26ce7aa07aa1b734f842615f80c
parent2077e348c2a84901022ad95311b47b70361e6daa
OneNAND: Add missing mtd info struct before calling onenand_erase()

Without this patch "saveenv" crashes when MTD partitions are enabled (e.g.
for use in UBI) via CONFIG_MTD_PARTITIONS.

Signed-off-by: Stefan Roese <sr@denx.de>
Signed-off-by: Scott Wood <scottwood@freescale.com>
common/env_onenand.c