summaryrefslogtreecommitdiff
path: root/nuttx/arch/hc
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-11-15 08:22:51 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-11-15 08:22:51 -0600
commitb68b625556543fd9a9c9ba40ed5ca5c4b725f7ed (patch)
treeae5f590da1302541d30c3a26f4a9ffc7d599b338 /nuttx/arch/hc
parentc43a244ee4d243ab3429a39ed90408eeb02a864c (diff)
downloadnuttx-b68b625556543fd9a9c9ba40ed5ca5c4b725f7ed.tar.gz
nuttx-b68b625556543fd9a9c9ba40ed5ca5c4b725f7ed.tar.bz2
nuttx-b68b625556543fd9a9c9ba40ed5ca5c4b725f7ed.zip
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
Diffstat (limited to 'nuttx/arch/hc')
-rw-r--r--nuttx/arch/hc/src/m9s12/m9s12_ethernet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/arch/hc/src/m9s12/m9s12_ethernet.c b/nuttx/arch/hc/src/m9s12/m9s12_ethernet.c
index 023bc922b..b179fb728 100644
--- a/nuttx/arch/hc/src/m9s12/m9s12_ethernet.c
+++ b/nuttx/arch/hc/src/m9s12/m9s12_ethernet.c
@@ -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;
}