spl mxc nand: Merge duplicated code
authorBenoît Thébaudeau <benoit.thebaudeau@advansee.com>
Mon, 13 Aug 2012 20:48:56 +0000 (22:48 +0200)
committerScott Wood <scottwood@freescale.com>
Tue, 18 Sep 2012 00:42:46 +0000 (19:42 -0500)
commit5d818a2821c3c7cf350ee4a2c67a11f8e1039af0
tree6448c0917ab8d37d2661ab6443b18548656179d2
parent365b2c0761040764953e659f3385840e33823807
spl mxc nand: Merge duplicated code

Merge duplicated code into functions, which is better for SPL size too.

Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau@advansee.com>
Cc: Scott Wood <scottwood@freescale.com>
Cc: Stefano Babic <sbabic@denx.de>
Signed-off-by: Scott Wood <scottwood@freescale.com>
nand_spl/nand_boot_fsl_nfc.c