aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wimax
diff options
context:
space:
mode:
authorInaky Perez-Gonzalez <inaky@linux.intel.com>2009-01-09 11:43:49 -0500
committerDavid S. Miller <davem@davemloft.net>2009-01-21 17:03:35 -0500
commita962dc2520d85c278768f5f6028f300152fca7fa (patch)
treecf3aefc9d98f490067186b4b7fd38646ec922601 /drivers/net/wimax
parent2171dc1815fcc5cc08d227155d65bb268070f6a5 (diff)
wimax/i2400m: convert to net_device_ops
Signed-off-by: Inaky Perez-Gonzalez <inaky@linux.intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wimax')
-rw-r--r--drivers/net/wimax/i2400m/netdev.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/drivers/net/wimax/i2400m/netdev.c b/drivers/net/wimax/i2400m/netdev.c
index 63fe708e8a31..57159e4bbfe1 100644
--- a/drivers/net/wimax/i2400m/netdev.c
+++ b/drivers/net/wimax/i2400m/netdev.c
@@ -493,6 +493,14 @@ error_skb_realloc:
493 i2400m, buf, buf_len); 493 i2400m, buf, buf_len);
494} 494}
495 495
496static const struct net_device_ops i2400m_netdev_ops = {
497 .ndo_open = i2400m_open,
498 .ndo_stop = i2400m_stop,
499 .ndo_start_xmit = i2400m_hard_start_xmit,
500 .ndo_tx_timeout = i2400m_tx_timeout,
501 .ndo_change_mtu = i2400m_change_mtu,
502};
503
496 504
497/** 505/**
498 * i2400m_netdev_setup - Setup setup @net_dev's i2400m private data 506 * i2400m_netdev_setup - Setup setup @net_dev's i2400m private data
@@ -513,11 +521,7 @@ void i2400m_netdev_setup(struct net_device *net_dev)
513 & (~IFF_BROADCAST /* i2400m is P2P */ 521 & (~IFF_BROADCAST /* i2400m is P2P */
514 & ~IFF_MULTICAST); 522 & ~IFF_MULTICAST);
515 net_dev->watchdog_timeo = I2400M_TX_TIMEOUT; 523 net_dev->watchdog_timeo = I2400M_TX_TIMEOUT;
516 net_dev->open = i2400m_open; 524 net_dev->netdev_ops = &i2400m_netdev_ops;
517 net_dev->stop = i2400m_stop;
518 net_dev->hard_start_xmit = i2400m_hard_start_xmit;
519 net_dev->change_mtu = i2400m_change_mtu;
520 net_dev->tx_timeout = i2400m_tx_timeout;
521 d_fnend(3, NULL, "(net_dev %p) = void\n", net_dev); 525 d_fnend(3, NULL, "(net_dev %p) = void\n", net_dev);
522} 526}
523EXPORT_SYMBOL_GPL(i2400m_netdev_setup); 527EXPORT_SYMBOL_GPL(i2400m_netdev_setup);