net: dp83867: Fix OF_MDIO config check
authorDan Murphy <dmurphy@ti.com>
Fri, 5 Jun 2020 14:01:05 +0000 (09:01 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Jun 2020 15:49:05 +0000 (17:49 +0200)
commit414baaaf82701949b3905e9293c0f433e20fbeeb
tree5ddbedc5a81a43d329c460803afea65623ee3b1c
parent0bcde2d82ef8ade94ee8f4cc5f7a8382d324a844
net: dp83867: Fix OF_MDIO config check

[ Upstream commit 506de00677b84dfc6718cbbd3495b1d90df5d098 ]

When CONFIG_OF_MDIO is set to be a module the code block is not
compiled. Use the IS_ENABLED macro that checks for both built in as
well as module.

Fixes: 2a10154abcb75 ("net: phy: dp83867: Add TI dp83867 phy")
Signed-off-by: Dan Murphy <dmurphy@ti.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/phy/dp83867.c