]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
enetc: auto select PHYLIB and MDIO_DEVRES
authorTong Zhang <ztong0001@gmail.com>
Thu, 11 Feb 2021 17:54:11 +0000 (12:54 -0500)
committerDavid S. Miller <davem@davemloft.net>
Fri, 12 Feb 2021 02:12:47 +0000 (18:12 -0800)
FSL_ENETC_MDIO use symbols from PHYLIB (MDIO_BUS) and MDIO_DEVRES,
however there are no dependency specified in Kconfig

ERROR: modpost: "__mdiobus_register" [drivers/net/ethernet/freescale/enetc/fsl-enetc-mdio.ko] undefined!
ERROR: modpost: "mdiobus_unregister" [drivers/net/ethernet/freescale/enetc/fsl-enetc-mdio.ko] undefined!
ERROR: modpost: "devm_mdiobus_alloc_size" [drivers/net/ethernet/freescale/enetc/fsl-enetc-mdio.ko] undefined!

add depends on MDIO_DEVRES && MDIO_BUS

Signed-off-by: Tong Zhang <ztong0001@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/enetc/Kconfig

index d99ea0f4e4a6cb23ab679c8a78bb2d43cad7582e..ab92382c399ad2ce3da65b846f0e6e6f350bd56b 100644 (file)
@@ -27,7 +27,7 @@ config FSL_ENETC_VF
 
 config FSL_ENETC_MDIO
        tristate "ENETC MDIO driver"
-       depends on PCI
+       depends on PCI && MDIO_DEVRES && MDIO_BUS
        help
          This driver supports NXP ENETC Central MDIO controller as a PCIe
          physical function (PF) device.