Skip to content

Commit ca6fafd

Browse files
committed
m68knommu: fix FEC platform device registration when driver is modular
The FEC (Fast Ethernet Crontroller) module on many ColdFire parts can be compiled into the kernel, or as a module. Therefore the platform device support for it is required whenever the driver is enabled - not just when built into the kernel. Use IS_ENABLED(CONFIG_FEC) instead of a conditional check on only the driver being built into the kernel. Signed-off-by: Greg Ungerer <[email protected]> Acked-by: Geert Uytterhoeven <[email protected]>
1 parent f6cede5 commit ca6fafd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/m68k/coldfire/device.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ static struct platform_device mcf_uart = {
8989
.dev.platform_data = mcf_uart_platform_data,
9090
};
9191

92-
#ifdef CONFIG_FEC
92+
#if IS_ENABLED(CONFIG_FEC)
9393

9494
#ifdef CONFIG_M5441x
9595
#define FEC_NAME "enet-fec"
@@ -329,7 +329,7 @@ static struct platform_device mcf_qspi = {
329329

330330
static struct platform_device *mcf_devices[] __initdata = {
331331
&mcf_uart,
332-
#ifdef CONFIG_FEC
332+
#if IS_ENABLED(CONFIG_FEC)
333333
&mcf_fec0,
334334
#ifdef MCFFEC_BASE1
335335
&mcf_fec1,

0 commit comments

Comments
 (0)