Netwoek: Ada a parameter to netdev_register() to indicate the link protocol supported by the driver. Use this value to replace some logic commited yesterday

This commit is contained in:
Gregory Nutt 2014-11-15 08:22:51 -06:00
parent 025e36ba8c
commit bf984b2b3a
13 changed files with 13 additions and 13 deletions

View File

@ -2156,7 +2156,7 @@ void up_netinitialize(void)
/* Register the device with the OS so that socket IOCTLs can be performed */
(void)netdev_register(&g_c5471[0].c_dev);
(void)netdev_register(&g_c5471[0].c_dev, NET_LL_ETHERNET);
}
#endif /* CONFIG_NET */

View File

@ -1541,7 +1541,7 @@ int kinetis_netinitialize(int intf)
/* Register the device with the OS so that socket IOCTLs can be performed */
(void)netdev_register(&priv->dev);
(void)netdev_register(&priv->dev, NET_LL_ETHERNET);
return OK;
}

View File

@ -2587,7 +2587,7 @@ static inline int lpc17_ethinitialize(int intf)
/* Register the device with the OS so that socket IOCTLs can be performed */
(void)netdev_register(&priv->lp_dev);
(void)netdev_register(&priv->lp_dev, NET_LL_ETHERNET);
return OK;
}

View File

@ -3108,7 +3108,7 @@ void up_netinitialize(void)
/* Register the device with the OS so that socket IOCTLs can be performed */
ret = netdev_register(&priv->dev);
ret = netdev_register(&priv->dev, NET_LL_ETHERNET);
if (ret >= 0)
{
return;

View File

@ -3157,7 +3157,7 @@ int sam_emac_initialize(void)
/* Register the device with the OS so that socket IOCTLs can be performed */
ret = netdev_register(&priv->dev);
ret = netdev_register(&priv->dev, NET_LL_ETHERNET);
if (ret >= 0)
{
return ret;

View File

@ -3851,7 +3851,7 @@ int sam_emac_initialize(int intf)
/* Register the device with the OS so that socket IOCTLs can be performed */
ret = netdev_register(&priv->dev);
ret = netdev_register(&priv->dev, NET_LL_ETHERNET);
if (ret >= 0)
{
return ret;

View File

@ -3229,7 +3229,7 @@ int sam_gmac_initialize(void)
/* Register the device with the OS so that socket IOCTLs can be performed */
ret = netdev_register(&priv->dev);
ret = netdev_register(&priv->dev, NET_LL_ETHERNET);
if (ret >= 0)
{
return ret;

View File

@ -3610,7 +3610,7 @@ int stm32_ethinitialize(int intf)
/* Register the device with the OS so that socket IOCTLs can be performed */
(void)netdev_register(&priv->dev);
(void)netdev_register(&priv->dev, NET_LL_ETHERNET);
return OK;
}

View File

@ -1448,7 +1448,7 @@ static inline int tiva_ethinitialize(int intf)
/* Register the device with the OS so that socket IOCTLs can be performed */
(void)netdev_register(&priv->ld_dev);
(void)netdev_register(&priv->ld_dev, NET_LL_ETHERNET);
return OK;
}

View File

@ -685,7 +685,7 @@ int emac_initialize(int intf)
/* Register the device with the OS so that socket IOCTLs can be performed */
(void)netdev_register(&priv->d_dev);
(void)netdev_register(&priv->d_dev, NET_LL_ETHERNET);
return OK;
}

View File

@ -3143,7 +3143,7 @@ static inline int pic32mx_ethinitialize(int intf)
/* Register the device with the OS so that socket IOCTLs can be performed */
(void)netdev_register(&priv->pd_dev);
(void)netdev_register(&priv->pd_dev, NET_LL_ETHERNET);
return OK;
}

View File

@ -215,7 +215,7 @@ int netdriver_init(void)
/* Register the device with the OS so that socket IOCTLs can be performed */
(void)netdev_register(&g_sim_dev);
(void)netdev_register(&g_sim_dev, NET_LL_ETHERNET);
return OK;
}

View File

@ -2148,7 +2148,7 @@ int up_netinitialize(void)
/* Register the device with the OS so that socket IOCTLs can be performed */
(void)netdev_register(&priv->dev);
(void)netdev_register(&priv->dev, NET_LL_ETHERNET);
return OK;
errout: