x25_asy: convert to net_device_ops
authorStephen Hemminger <shemminger@vyatta.com>
Fri, 20 Mar 2009 19:36:13 +0000 (19:36 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 22 Mar 2009 05:37:57 +0000 (22:37 -0700)
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wan/x25_asy.c

index d62844d7e9344c1651562992f46853cbacf9569f..d67e208ab3759941c6be1344d63114af8e8d3d14 100644 (file)
@@ -712,6 +712,14 @@ static int x25_asy_open_dev(struct net_device *dev)
        return 0;
 }
 
+static const struct net_device_ops x25_asy_netdev_ops = {
+       .ndo_open       = x25_asy_open_dev,
+       .ndo_stop       = x25_asy_close,
+       .ndo_start_xmit = x25_asy_xmit,
+       .ndo_tx_timeout = x25_asy_timeout,
+       .ndo_change_mtu = x25_asy_change_mtu,
+};
+
 /* Initialise the X.25 driver.  Called by the device init code */
 static void x25_asy_setup(struct net_device *dev)
 {
@@ -727,12 +735,8 @@ static void x25_asy_setup(struct net_device *dev)
         */
 
        dev->mtu                = SL_MTU;
-       dev->hard_start_xmit    = x25_asy_xmit;
-       dev->tx_timeout         = x25_asy_timeout;
+       dev->netdev_ops         = &x25_asy_netdev_ops;
        dev->watchdog_timeo     = HZ*20;
-       dev->open               = x25_asy_open_dev;
-       dev->stop               = x25_asy_close;
-       dev->change_mtu         = x25_asy_change_mtu;
        dev->hard_header_len    = 0;
        dev->addr_len           = 0;
        dev->type               = ARPHRD_X25;