net: fm: fix build error when not using nand
authorFrancois Gervais <fgervais@distech-controls.com>
Wed, 8 Apr 2020 13:48:12 +0000 (09:48 -0400)
committerPriyanka Jain <priyanka.jain@nxp.com>
Fri, 17 Apr 2020 09:43:19 +0000 (15:13 +0530)
commit402ef4d2447fee1d615c9689bc545e537d21e46f
treecb28f256a7ffb092eeae2123f223d414473d5b60
parent0f238dab6d17caabe4f9781d23aaa6087139f2bd
net: fm: fix build error when not using nand

If CONFIG_CMD_NAND is disabled, get_nand_dev_by_index() is not
accessible.

This fix allows the build to succeed in this case.

Signed-off-by: Francois Gervais <fgervais@distech-controls.com>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
drivers/net/fm/fm.c