board: toradex: common: fail gracefully on missing NAND chip
authorStefan Agner <stefan.agner@toradex.com>
Mon, 6 Aug 2018 07:19:18 +0000 (09:19 +0200)
committerStefano Babic <sbabic@denx.de>
Tue, 4 Sep 2018 06:47:23 +0000 (08:47 +0200)
commitbc53fb19fef1afbd7b328ea72de5be313016f585
treec89fddc0ba5fba517e12f7b056c77df06701baef
parent57b620255e726fae38e5e2ac5c7dec4b9011ffca
board: toradex: common: fail gracefully on missing NAND chip

If the NAND chip is missing get_nand_dev_by_index() returns NULL. Fail
gracefully in this case.

Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
board/toradex/common/tdx-cfg-block.c