Skip to content
Snippets Groups Projects
Commit 549d7c0e authored by Peng Fan's avatar Peng Fan Committed by Scott Wood
Browse files

nand: mxs: fix error handling for mxs_nand_init


Fix error handling for mxs_nand_init.

The original error handling is wrong for err2 and err1.
Should first free desc[x], then free desc.

This patch also correctly handle err3, should use
MXS_DMA_CHANNEL_AHB_APBH_GPMI0 as the check point.

Cc: Stefano Babic <sbabic@denx.de>
CC: Fabio Estevam <Fabio.Estevam@freescale.com>
Cc: Scott Wood <scottwood@freescale.com>
Cc: Marek Vasut <marex@denx.de>
Signed-off-by: default avatarPeng Fan <van.freenix@gmail.com>
Reviewed-by: default avatarMarek Vasut <marex@denx.de>
parent 9ef2835f
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment