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

[ Upstream commit ae602786407fef34e1d66b3c8f278a10ed37197e ]

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: 4f58e6dceb0e4 ("net: phy: Cleanup the Edge-Rate feature in Microsemi PHYs.")
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/mscc/mscc.h
drivers/net/phy/mscc/mscc_main.c