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)
commite185ea30df1f6fee40d10ea98e6e11f9af9846d4
treed7f251f7c4253e3e702476fe5d90fa17c670ecbc
parent8a28af7a3e85ddf358f8c41e401a33002f7a9587
enetc: auto select PHYLIB and MDIO_DEVRES

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