summaryrefslogtreecommitdiff
path: root/nuttx/arch/arm/src/tiva
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/arch/arm/src/tiva')
-rw-r--r--nuttx/arch/arm/src/tiva/tm4c_ethernet.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/arch/arm/src/tiva/tm4c_ethernet.c b/nuttx/arch/arm/src/tiva/tm4c_ethernet.c
index 74ae68bcd..001f63604 100644
--- a/nuttx/arch/arm/src/tiva/tm4c_ethernet.c
+++ b/nuttx/arch/arm/src/tiva/tm4c_ethernet.c
@@ -3938,13 +3938,13 @@ int tiva_ethinitialize(int intf)
priv->txpoll = wd_create(); /* Create periodic poll timer */
priv->txtimeout = wd_create(); /* Create TX timeout timer */
+#ifdef CONFIG_TIVA_BOARDMAC
/* If the board can provide us with a MAC address, get the address
* from the board now. The MAC will not be applied until tiva_ifup()
* is called (and the MAC can be overwritten with a netdev ioctl call).
*/
-#ifdef CONFIG_TIVA_BOARDMAC
- tiva_ethernetmac(&priv->dev.d_mac);
+ tiva_ethernetmac(&priv->dev.d_mac);
#endif
/* Enable power and clocking to the Ethernet MAC