Skip to content
Commit 74c97ea3 authored by Arnd Bergmann's avatar Arnd Bergmann Committed by David S. Miller
Browse files

net: enetc: fix link error again

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: 112463dd ("net: dsa: felix: fix link error")
Fixes: e7d48e5f

 ("net: enetc: add a mini driver for the Integrated Endpoint Register Block")
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Acked-by: default avatarVladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 45b102dd
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment