net: davinci: fix building davinci mdio code without CONFIG_OF
authorArnd Bergmann <arnd@arndb.de>
Mon, 28 May 2018 15:50:20 +0000 (17:50 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 30 May 2018 17:21:23 +0000 (13:21 -0400)
commit37c9102f216c2ecd4296de1027fbfc4fa7d73877
treea2398695b0cbdb6dccbf80701cc741fc04e11dc1
parent3ded9f2b35f02ca00523c79f88f6cf5050622384
net: davinci: fix building davinci mdio code without CONFIG_OF

Test-building this driver on targets without CONFIG_OF revealed a build
failure:

drivers/net/ethernet/ti/davinci_mdio.c: In function 'davinci_mdio_probe':
drivers/net/ethernet/ti/davinci_mdio.c:380:9: error: implicit declaration of function 'davinci_mdio_probe_dt'; did you mean 'davinci_mdio_probe'? [-Werror=implicit-function-declaration]

This adjusts the #ifdef logic in the driver to make it build in
all configurations.

Fixes: 2652113ff043 ("net: ethernet: ti: Allow most drivers with COMPILE_TEST")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/davinci_mdio.c