]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
strip: convert to net_device_ops
authorStephen Hemminger <shemminger@vyatta.com>
Fri, 20 Mar 2009 19:36:23 +0000 (19:36 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 22 Mar 2009 05:43:57 +0000 (22:43 -0700)
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wireless/strip.c

index 39f525efdc8d90af46b572e60b749386d9f31919..f9520463269074eee8fb724ddc75b002de86103e 100644 (file)
@@ -2477,6 +2477,16 @@ static const struct header_ops strip_header_ops = {
        .rebuild = strip_rebuild_header,
 };
 
+
+static const struct net_device_ops strip_netdev_ops = {
+       .ndo_open       = strip_open_low,
+       .ndo_stop       = strip_close_low,
+       .ndo_start_xmit = strip_xmit,
+       .ndo_set_mac_address = strip_set_mac_address,
+       .ndo_get_stats  = strip_get_stats,
+       .ndo_change_mtu = strip_change_mtu,
+};
+
 /*
  * This routine is called by DDI when the
  * (dynamically assigned) device is registered
@@ -2503,18 +2513,8 @@ static void strip_dev_setup(struct net_device *dev)
        dev->dev_addr[0] = 0;
        dev->addr_len = sizeof(MetricomAddress);
 
-       /*
-        * Pointers to interface service routines.
-        */
-
-       dev->open = strip_open_low;
-       dev->stop = strip_close_low;
-       dev->hard_start_xmit = strip_xmit;
-       dev->header_ops = &strip_header_ops;
-
-       dev->set_mac_address = strip_set_mac_address;
-       dev->get_stats = strip_get_stats;
-       dev->change_mtu = strip_change_mtu;
+       dev->header_ops = &strip_header_ops,
+       dev->netdev_ops = &strip_netdev_ops;
 }
 
 /*