armv8: fsl-layerscape: use get_nand_dev_by_index()
authorGrygorii Strashko <grygorii.strashko@ti.com>
Tue, 27 Jun 2017 00:13:07 +0000 (19:13 -0500)
committerTom Rini <trini@konsulko.com>
Wed, 12 Jul 2017 02:41:53 +0000 (22:41 -0400)
commit8a049dd642a1e51eed928dd12527325334bb2bd9
tree50707ec0557097e614d89ef295859e14b170a87f
parentbf264cd0f61568404e717eb067e3e2e825715531
armv8: fsl-layerscape: use get_nand_dev_by_index()

As part of preparation for nand DM conversion the new API has been
introduced to remove direct access to nand_info array. So, use it here
instead of accessing to nand_info array directly.

Cc: Albert Aribaud <albert.u.boot@aribaud.net>
Cc: York Sun <york.sun@nxp.com>
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
arch/arm/cpu/armv8/fsl-layerscape/ppa.c