aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/phy
diff options
context:
space:
mode:
authorBjørn Mork <bjorn@mork.no>2012-05-11 01:47:01 -0400
committerDavid S. Miller <davem@davemloft.net>2012-05-11 18:03:03 -0400
commitb943fbb09036bf7ff8e780af511a21576fe60a1e (patch)
tree4e7a6468b55b16a3baa471fc644802b9a1b112eb /drivers/net/phy
parent16c788dee1934c2cc4e98692a5a63132d6e07d50 (diff)
net: of/phy: fix build error when phylib is built as a module
CONFIG_OF_MDIO is tristate and will be m if PHYLIB is m. Use IS_ENABLED macro to prevent build error: ERROR: "of_mdio_find_bus" [drivers/net/phy/mdio-mux.ko] undefined! Reported-by: Randy Dunlap <rdunlap@xenotime.net> Cc: David Daney <david.daney@cavium.com> Signed-off-by: Bjørn Mork <bjorn@mork.no> Acked-by: David Daney <david.daney@cavium.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/phy')
-rw-r--r--drivers/net/phy/mdio_bus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/phy/mdio_bus.c b/drivers/net/phy/mdio_bus.c
index 83d5c9f55686..683ef1ce5519 100644
--- a/drivers/net/phy/mdio_bus.c
+++ b/drivers/net/phy/mdio_bus.c
@@ -88,7 +88,7 @@ static struct class mdio_bus_class = {
88 .dev_release = mdiobus_release, 88 .dev_release = mdiobus_release,
89}; 89};
90 90
91#ifdef CONFIG_OF_MDIO 91#if IS_ENABLED(CONFIG_OF_MDIO)
92/* Helper function for of_mdio_find_bus */ 92/* Helper function for of_mdio_find_bus */
93static int of_mdio_bus_match(struct device *dev, void *mdio_bus_np) 93static int of_mdio_bus_match(struct device *dev, void *mdio_bus_np)
94{ 94{