diff --git a/arch/arm/src/common/up_internal.h b/arch/arm/src/common/up_internal.h index cd15068aaf7..341c0c72253 100644 --- a/arch/arm/src/common/up_internal.h +++ b/arch/arm/src/common/up_internal.h @@ -511,7 +511,7 @@ void up_wdtinit(void); * up_initialize(). Then this stub would not be needed. */ -#ifdef CONFIG_NET +#if defined(CONFIG_NET) && !defined(CONFIG_NETDEV_LATEINIT) void up_netinitialize(void); #else # define up_netinitialize() diff --git a/arch/avr/src/common/up_internal.h b/arch/avr/src/common/up_internal.h index aed4da811be..9d7c3011c18 100644 --- a/arch/avr/src/common/up_internal.h +++ b/arch/avr/src/common/up_internal.h @@ -173,7 +173,7 @@ void avr_timer_initialize(void); /* Defined in chip/xxx_ethernet.c */ -#ifdef CONFIG_NET +#if defined(CONFIG_NET) && !defined(CONFIG_NETDEV_LATEINIT) void up_netinitialize(void); #else # define up_netinitialize() diff --git a/arch/hc/src/common/up_internal.h b/arch/hc/src/common/up_internal.h index 6ed1e51b67c..d090df849c4 100644 --- a/arch/hc/src/common/up_internal.h +++ b/arch/hc/src/common/up_internal.h @@ -197,7 +197,7 @@ void weak_function up_dmainitialize(void); void up_wdtinit(void); -#ifdef CONFIG_NET +#if defined(CONFIG_NET) && !defined(CONFIG_NETDEV_LATEINIT) void up_netinitialize(void); #else # define up_netinitialize() diff --git a/arch/mips/src/common/up_internal.h b/arch/mips/src/common/up_internal.h index a456e3d72f5..20a1c37bbee 100644 --- a/arch/mips/src/common/up_internal.h +++ b/arch/mips/src/common/up_internal.h @@ -250,7 +250,7 @@ void mips_timer_initialize(void); /* Network */ -#ifdef CONFIG_NET +#if defined(CONFIG_NET) && !defined(CONFIG_NETDEV_LATEINIT) void up_netinitialize(void); #else # define up_netinitialize() diff --git a/arch/or1k/src/common/up_internal.h b/arch/or1k/src/common/up_internal.h index c00bcf6fa66..05b8519d48b 100644 --- a/arch/or1k/src/common/up_internal.h +++ b/arch/or1k/src/common/up_internal.h @@ -355,7 +355,7 @@ void up_wdtinit(void); * up_initialize(). Then this stub would not be needed. */ -#ifdef CONFIG_NET +#if defined(CONFIG_NET) && !defined(CONFIG_NETDEV_LATEINIT) void up_netinitialize(void); #else # define up_netinitialize() diff --git a/arch/renesas/src/common/up_internal.h b/arch/renesas/src/common/up_internal.h index ba9cdeecadf..1839c763d33 100644 --- a/arch/renesas/src/common/up_internal.h +++ b/arch/renesas/src/common/up_internal.h @@ -201,7 +201,7 @@ void up_lcdputc(char ch); /* Defined in board/xyz_network.c */ -#ifdef CONFIG_NET +#if defined(CONFIG_NET) && !defined(CONFIG_NETDEV_LATEINIT) void up_netinitialize(void); #else # define up_netinitialize() diff --git a/arch/x86/src/common/up_internal.h b/arch/x86/src/common/up_internal.h index f9bf7a2dfa9..8cc8bd2c55f 100644 --- a/arch/x86/src/common/up_internal.h +++ b/arch/x86/src/common/up_internal.h @@ -228,7 +228,7 @@ void x86_timer_initialize(void); /* Defined in board/up_network.c */ -#ifdef CONFIG_NET +#if defined(CONFIG_NET) && !defined(CONFIG_NETDEV_LATEINIT) void up_netinitialize(void); #else # define up_netinitialize() diff --git a/arch/xtensa/src/common/xtensa.h b/arch/xtensa/src/common/xtensa.h index 506ac82a7d1..a27c7e26ead 100644 --- a/arch/xtensa/src/common/xtensa.h +++ b/arch/xtensa/src/common/xtensa.h @@ -343,7 +343,7 @@ void xtensa_timer_initialize(void); /* Network */ -#ifdef CONFIG_NET +#if defined(CONFIG_NET) && !defined(CONFIG_NETDEV_LATEINIT) void up_netinitialize(void); #else # define up_netinitialize() diff --git a/arch/z16/src/common/up_internal.h b/arch/z16/src/common/up_internal.h index 7e547587688..015cc642348 100644 --- a/arch/z16/src/common/up_internal.h +++ b/arch/z16/src/common/up_internal.h @@ -172,7 +172,7 @@ void up_ack_irq(int irq); /* Defined in board/xyz_network.c */ -#ifdef CONFIG_NET +#if defined(CONFIG_NET) && !defined(CONFIG_NETDEV_LATEINIT) void up_netinitialize(void); #else # define up_netinitialize() diff --git a/arch/z80/src/common/up_internal.h b/arch/z80/src/common/up_internal.h index 5e19c08a62b..9a8ed0c9a1e 100644 --- a/arch/z80/src/common/up_internal.h +++ b/arch/z80/src/common/up_internal.h @@ -188,7 +188,7 @@ void up_timerhook(void); /* Defined in board/up_network.c */ -#ifdef CONFIG_NET +#if defined(CONFIG_NET) && !defined(CONFIG_NETDEV_LATEINIT) int up_netinitialize(void); void up_netuninitialize(void); # ifdef CONFIG_ARCH_MCFILTER