summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nuttx/arch/arm/src/lm3s/lm3s_ethernet.c2
-rw-r--r--nuttx/arch/arm/src/lpc17xx/lpc17_ethernet.c8
2 files changed, 8 insertions, 2 deletions
diff --git a/nuttx/arch/arm/src/lm3s/lm3s_ethernet.c b/nuttx/arch/arm/src/lm3s/lm3s_ethernet.c
index af78660e9..bf8e6a8e8 100644
--- a/nuttx/arch/arm/src/lm3s/lm3s_ethernet.c
+++ b/nuttx/arch/arm/src/lm3s/lm3s_ethernet.c
@@ -915,7 +915,7 @@ static int lm3s_interrupt(int irq, FAR void *context)
}
/* Enable Ethernet interrupts (perhaps excluding the TX done interrupt if
- * there are no pending transmissions.
+ * there are no pending transmissions).
*/
return OK;
diff --git a/nuttx/arch/arm/src/lpc17xx/lpc17_ethernet.c b/nuttx/arch/arm/src/lpc17xx/lpc17_ethernet.c
index 2b7f1fd21..874ef1c96 100644
--- a/nuttx/arch/arm/src/lpc17xx/lpc17_ethernet.c
+++ b/nuttx/arch/arm/src/lpc17xx/lpc17_ethernet.c
@@ -1100,9 +1100,15 @@ static void lpc17_txdone(struct lpc17_driver_s *priv)
static int lpc17_interrupt(int irq, void *context)
{
- register struct lpc17_driver_s *priv = &g_ethdrvr[0];
+ register struct lpc17_driver_s *priv;
uint32_t status;
+#if CONFIG_LPC17_NINTERFACES > 1
+# error "A mechanism to associate and interface with an IRQ is needed"
+#else
+ priv = &g_ethdrvr[0];
+#endif
+
/* Get the interrupt status (zero means no interrupts pending). */
status = lpc17_getreg(LPC17_ETH_INTST);