summaryrefslogtreecommitdiffstats
path: root/drivers/net/wan
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@vyatta.com>2009-03-20 19:36:18 +0000
committerDavid S. Miller <davem@davemloft.net>2009-03-21 22:43:55 -0700
commit39549b1e83e640907b0ed58f76d3331c2ae40e3d (patch)
tree391797f514d7132bfdb4225a34576ca25fc591e1 /drivers/net/wan
parentea2ebaf822ad7cf9d2a1aa5f579be34c8c840202 (diff)
downloadtalos-obmc-linux-39549b1e83e640907b0ed58f76d3331c2ae40e3d.tar.gz
talos-obmc-linux-39549b1e83e640907b0ed58f76d3331c2ae40e3d.zip
labether: convert to net_device_ops
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wan')
-rw-r--r--drivers/net/wan/lapbether.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/drivers/net/wan/lapbether.c b/drivers/net/wan/lapbether.c
index d0b8d0299de4..2dd78d20eb05 100644
--- a/drivers/net/wan/lapbether.c
+++ b/drivers/net/wan/lapbether.c
@@ -303,13 +303,17 @@ static int lapbeth_close(struct net_device *dev)
/* ------------------------------------------------------------------------ */
+static const struct net_device_ops lapbeth_netdev_ops = {
+ .ndo_open = lapbeth_open,
+ .ndo_stop = lapbeth_close,
+ .ndo_start_xmit = lapbeth_xmit,
+ .ndo_set_mac_address = lapbeth_set_mac_address,
+};
+
static void lapbeth_setup(struct net_device *dev)
{
- dev->hard_start_xmit = lapbeth_xmit;
- dev->open = lapbeth_open;
- dev->stop = lapbeth_close;
+ dev->netdev_ops = &lapbeth_netdev_ops;
dev->destructor = free_netdev;
- dev->set_mac_address = lapbeth_set_mac_address;
dev->type = ARPHRD_X25;
dev->hard_header_len = 3;
dev->mtu = 1000;
OpenPOWER on IntegriCloud