]> git.baikalelectronics.ru Git - kernel.git/commit
net: mscc: Fix OF_MDIO config check
authorDan Murphy <dmurphy@ti.com>
Fri, 5 Jun 2020 14:01:07 +0000 (09:01 -0500)
committerDavid S. Miller <davem@davemloft.net>
Fri, 5 Jun 2020 20:15:22 +0000 (13:15 -0700)
commit093bfe2d508c23f3238664773d7e5e3c382ed38b
tree3761a270011f32dae3999c8f687490cca89c65b7
parent256004ad2fa99d645476b2a81641ce81c548b6cb
net: mscc: Fix OF_MDIO config check

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: c0741df2b06c4 ("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>
drivers/net/phy/mscc/mscc.h
drivers/net/phy/mscc/mscc_main.c