aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/phy/Makefile
diff options
context:
space:
mode:
authorBartosz Golaszewski <bgolaszewski@baylibre.com>2020-06-29 14:03:45 +0200
committerDavid S. Miller <davem@davemloft.net>2020-06-30 15:57:34 -0700
commit14eeb6e086d6b9004c600e5f0f62bacb458ecfba (patch)
treec50a619917df6ac612b4f457bbe1d53c75c337cc /drivers/net/phy/Makefile
parenta0bd96f5aed2108505386733abe76f37362c2f50 (diff)
downloadlinux-14eeb6e086d6b9004c600e5f0f62bacb458ecfba.tar.gz
of: mdio: provide devm_of_mdiobus_register()
Implement a managed variant of of_mdiobus_register(). We need to make mdio_devres into its own module because otherwise we'd hit circular sumbol dependencies between phylib and of_mdio. Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/phy/Makefile')
-rw-r--r--drivers/net/phy/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/phy/Makefile b/drivers/net/phy/Makefile
index 896afdcac4371f..c9a9adf194d501 100644
--- a/drivers/net/phy/Makefile
+++ b/drivers/net/phy/Makefile
@@ -3,7 +3,8 @@
libphy-y := phy.o phy-c45.o phy-core.o phy_device.o \
linkmode.o
-mdio-bus-y += mdio_bus.o mdio_device.o mdio_devres.o
+mdio-bus-y += mdio_bus.o mdio_device.o
+mdio-devres-y += mdio_devres.o
ifdef CONFIG_MDIO_DEVICE
obj-y += mdio-boardinfo.o
@@ -17,6 +18,7 @@ libphy-y += $(mdio-bus-y)
else
obj-$(CONFIG_MDIO_DEVICE) += mdio-bus.o
endif
+obj-$(CONFIG_MDIO_DEVICE) += mdio-devres.o
libphy-$(CONFIG_SWPHY) += swphy.o
libphy-$(CONFIG_LED_TRIGGER_PHY) += phy_led_triggers.o