diff options
author | Arnd Bergmann <arnd@arndb.de> | 2020-01-08 13:48:38 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-01-09 01:05:54 +0100 |
commit | 112463ddbe82f8d1f98bfb7f943e1ed3c08bc56a (patch) | |
tree | 3d55f78de04e027ede2456fbd2702e5b5dbc7a7c /drivers/net/ethernet/freescale/Makefile | |
parent | r8169: add constant EnAnaPLL (diff) | |
download | linux-112463ddbe82f8d1f98bfb7f943e1ed3c08bc56a.tar.xz linux-112463ddbe82f8d1f98bfb7f943e1ed3c08bc56a.zip |
net: dsa: felix: fix link error
When the enetc driver is disabled, the mdio support fails to
get built:
drivers/net/dsa/ocelot/felix_vsc9959.o: In function `vsc9959_mdio_bus_alloc':
felix_vsc9959.c:(.text+0x19c): undefined reference to `enetc_hw_alloc'
felix_vsc9959.c:(.text+0x1d1): undefined reference to `enetc_mdio_read'
felix_vsc9959.c:(.text+0x1d8): undefined reference to `enetc_mdio_write'
Change the Makefile to enter the subdirectory for this as well.
Fixes: bdeced75b13f ("net: dsa: felix: Add PCS operations for PHYLINK")
Fixes: 6517798dd343 ("enetc: Make MDIO accessors more generic and export to include/linux/fsl")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/freescale/Makefile')
-rw-r--r-- | drivers/net/ethernet/freescale/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/freescale/Makefile b/drivers/net/ethernet/freescale/Makefile index 6a93293d31e0..67c436400352 100644 --- a/drivers/net/ethernet/freescale/Makefile +++ b/drivers/net/ethernet/freescale/Makefile @@ -25,4 +25,5 @@ obj-$(CONFIG_FSL_DPAA_ETH) += dpaa/ obj-$(CONFIG_FSL_DPAA2_ETH) += dpaa2/ obj-$(CONFIG_FSL_ENETC) += enetc/ +obj-$(CONFIG_FSL_ENETC_MDIO) += enetc/ obj-$(CONFIG_FSL_ENETC_VF) += enetc/ |