From 4d176147d29f98d75bcf15c0a377cf92048174e9 Mon Sep 17 00:00:00 2001 From: patacongo Date: Tue, 16 Nov 2010 03:48:55 +0000 Subject: cosmetic git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3115 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/arch/arm/src/lpc17xx/lpc17_ethernet.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'nuttx/arch/arm/src/lpc17xx') 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); -- cgit v1.2.3