Fix some issues revealed by name changin of commit e5dfd805e6.

This commit is contained in:
Gregory Nutt 2019-07-11 11:19:03 -06:00
parent e5dfd805e6
commit 021a32b97d
4 changed files with 9 additions and 9 deletions

View File

@ -151,7 +151,7 @@ static char g_uart2rxbuffer[CONFIG_UART2_RXBUFSIZE];
static char g_uart2txbuffer[CONFIG_UART2_TXBUFSIZE];
#endif
/* This describes the state of the LPC17xx/LPC40xx uart0 port. */
/* This describes the state of the NUC1xx uart0 port. */
#ifdef CONFIG_NUC_UART0
static struct nuc_dev_s g_uart0priv =
@ -182,7 +182,7 @@ static uart_dev_t g_uart0port =
};
#endif /* CONFIG_NUC_UART0 */
/* This describes the state of the LPC17xx/LPC40xx uart1 port. */
/* This describes the state of the NUC1xx uart1 port. */
#ifdef CONFIG_NUC_UART1
static struct nuc_dev_s g_uart1priv =
@ -213,7 +213,7 @@ static uart_dev_t g_uart1port =
};
#endif /* CONFIG_NUC_UART1 */
/* This describes the state of the LPC17xx/LPC40xx uart1 port. */
/* This describes the state of the NUC1xx uart1 port. */
#ifdef CONFIG_NUC_UART2
static struct nuc_dev_s g_uart2priv =

View File

@ -744,12 +744,12 @@ static int emac_rmmac(struct net_driver_s *dev, FAR const uint8_t *mac)
int emac_initialize(int intf)
{
struct lpc17_40_driver_s *priv;
struct emac_driver_s *priv;
/* Get the interface structure associated with this interface number. */
DEBUGASSERT(inf < CONFIG_HCS12_NINTERFACES);
priv = &g_ethdrvr[intf];
priv = &g_emac[intf];
/* Check if a Ethernet chip is recognized at its I/O base */
@ -773,7 +773,7 @@ int emac_initialize(int intf)
priv->d_dev.d_addmac = emac_addmac; /* Add multicast MAC address */
priv->d_dev.d_rmmac = emac_rmmac; /* Remove multicast MAC address */
#endif
priv->d_dev.d_private = (void*)g_emac; /* Used to recover private state from dev */
priv->d_dev.d_private = priv; /* Used to recover private state from dev */
/* Create a watchdog for timing polling for and timing of transmissions */