SAM EMAC: Fix typo in the check for successfull allocation of a timer

This commit is contained in:
Gregory Nutt 2014-11-18 14:20:31 -06:00
parent 2134d0df43
commit 2d51315e66
5 changed files with 5 additions and 5 deletions

View File

@ -3063,7 +3063,7 @@ void up_netinitialize(void)
}
priv->txtimeout = wd_create(); /* Create TX timeout timer */
if (!priv->txpoll)
if (!priv->txtimeout)
{
nlldbg("ERROR: Failed to create periodic poll timer\n");
goto errout_with_txpoll;

View File

@ -3111,7 +3111,7 @@ int sam_emac_initialize(void)
}
priv->txtimeout = wd_create(); /* Create TX timeout timer */
if (!priv->txpoll)
if (!priv->txtimeout)
{
ndbg("ERROR: Failed to create periodic poll timer\n");
ret = -EAGAIN;

View File

@ -3810,7 +3810,7 @@ int sam_emac_initialize(int intf)
}
priv->txtimeout = wd_create(); /* Create TX timeout timer */
if (!priv->txpoll)
if (!priv->txtimeout)
{
ndbg("ERROR: Failed to create periodic poll timer\n");
ret = -EAGAIN;

View File

@ -3183,7 +3183,7 @@ int sam_gmac_initialize(void)
}
priv->txtimeout = wd_create(); /* Create TX timeout timer */
if (!priv->txpoll)
if (!priv->txtimeout)
{
nlldbg("ERROR: Failed to create periodic poll timer\n");
ret = -EAGAIN;

View File

@ -864,7 +864,7 @@ SAMA4D44-MB RevC PIO Usage
------------------------------ ------------------- -------------------------
PA0/LCDDAT0/TMS PA0 LCDDAT0, TMS
PA1/LCDDAT1 PA1 LCDDAT1
PA2/LCDDAT2/G1_TXCK PA LCDDAT2, G1_TXCK
PA2/LCDDAT2/G1_TXCK PA2 LCDDAT2, G1_TXCK
PA3/LCDDAT3/G1_RXCK PA3 LCDDAT3
PA4/LCDDAT4/G1_TXEN PA4 LCDDAT4, G1_TXEN
PA5/LCDDAT5/G1_TXER PA5 LCDDAT5