linux-yocto/arch/m68k/coldfire
Antonio Quartulli 022c3fc128 m68k: coldfire/device.c: only build FEC when HW macros are defined
[ Upstream commit 63a24cf8cc ]

When CONFIG_FEC is set (due to COMPILE_TEST) along with
CONFIG_M54xx, coldfire/device.c has compile errors due to
missing MCFEC_* and MCF_IRQ_FEC_* symbols.

Make the whole FEC blocks dependent on having the HW macros
defined, rather than on CONFIG_FEC itself.

This fix is very similar to commit e6e1e7b19f ("m68k: coldfire/device.c: only build for MCF_EDMA when h/w macros are defined")

Fixes: b7ce7f0d0e ("m68knommu: merge common ColdFire FEC platform setup code")
To: Greg Ungerer <gerg@linux-m68k.org>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: linux-m68k@lists.linux-m68k.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Antonio Quartulli <antonio@mandelbit.com>
Signed-off-by: Greg Ungerer <gerg@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-12-09 10:32:28 +01:00
..
amcore.c
cache.c
clk.c
device.c m68k: coldfire/device.c: only build FEC when HW macros are defined 2024-12-09 10:32:28 +01:00
dma_timer.c
entry.S
firebee.c
gpio.c
head.S
intc-2.c
intc-525x.c
intc-5249.c
intc-5272.c
intc-simr.c
intc.c
m53xx.c
m54xx.c
m520x.c
m523x.c
m525x.c
m527x.c
m528x.c
m5206.c
m5249.c
m5272.c
m5307.c
m5407.c
m5441x.c
Makefile
mcf8390.c
nettel.c
pci.c
pit.c
reset.c
sltimers.c
stmark2.c
timers.c
vectors.c