net: enetc: fix link error again
[ Upstream commit74c97ea3b6] A link time bug that I had fixed before has come back now that another sub-module was added to the enetc driver: ERROR: modpost: "enetc_ierb_register_pf" [drivers/net/ethernet/freescale/enetc/fsl-enetc.ko] undefined! The problem is that the enetc Makefile is not actually used for the ierb module if that is the only built-in driver in there and everything else is a loadable module. Fix it by always entering the directory this time, regardless of which symbols are configured. This should reliably fix the problem and prevent it from coming back another time. Fixes:112463ddbe("net: dsa: felix: fix link error") Fixes:e7d48e5fbf("net: enetc: add a mini driver for the Integrated Endpoint Register Block") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Vladimir Oltean <vladimir.oltean@nxp.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
bfcb5a8cc7
commit
9f722ef596
1 changed files with 1 additions and 3 deletions
|
|
@ -24,6 +24,4 @@ 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/
|
||||
obj-y += enetc/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue