Skip to content

Commit 0d90324

Browse files
Wolfram Sangdavem330
authored andcommitted
net: fsl: fec: fix build for mx23-only kernel
If one only selects mx23-based boards, compile fails: drivers/net/ethernet/freescale/fec.c:410:2: error: 'FEC_HASH_TABLE_HIGH' undeclared (first use in this function) drivers/net/ethernet/freescale/fec.c:411:2: error: 'FEC_HASH_TABLE_LOW' undeclared (first use in this function) This is because fec.h uses CONFIG_SOC_IMX28 to determine the register layout of the core which makes sense since the MX23 does not have a fec. However, Kconfig uses the broader ARCH_MXS symbol and this way even makes the fec-driver default for MX23. Adapt Kconfig to use the more precise SOC_IMX28 as well. Signed-off-by: Wolfram Sang <[email protected]> Cc: Fabio Estevam <[email protected]> Cc: Uwe Kleine-König <[email protected]> Cc: Shawn Guo <[email protected]> Cc: David S. Miller <[email protected]> Acked-by: Fabio Estevam <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 6bafcac commit 0d90324

File tree

1 file changed

+2
-2
lines changed
  • drivers/net/ethernet/freescale

1 file changed

+2
-2
lines changed

drivers/net/ethernet/freescale/Kconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ if NET_VENDOR_FREESCALE
2323
config FEC
2424
bool "FEC ethernet controller (of ColdFire and some i.MX CPUs)"
2525
depends on (M523x || M527x || M5272 || M528x || M520x || M532x || \
26-
ARCH_MXC || ARCH_MXS)
27-
default ARCH_MXC || ARCH_MXS if ARM
26+
ARCH_MXC || SOC_IMX28)
27+
default ARCH_MXC || SOC_IMX28 if ARM
2828
select PHYLIB
2929
---help---
3030
Say Y here if you want to use the built-in 10/100 Fast ethernet

0 commit comments

Comments
 (0)