]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/net/ppp_generic.c
netdev: add more functions to netdevice ops
[net-next-2.6.git] / drivers / net / ppp_generic.c
index bad99e8cac33e023a3c0cb02bfde2b2b96dda4b2..1b15a088a3ba80a9f8c5f0e1023f06e6cc1ddae8 100644 (file)
@@ -972,7 +972,8 @@ ppp_net_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
 }
 
 static const struct net_device_ops ppp_netdev_ops = {
-       .ndo_do_ioctl = ppp_net_ioctl,
+       .ndo_start_xmit = ppp_start_xmit,
+       .ndo_do_ioctl   = ppp_net_ioctl,
 };
 
 static void ppp_setup(struct net_device *dev)
@@ -2437,8 +2438,6 @@ ppp_create_interface(int unit, int *retp)
        skb_queue_head_init(&ppp->mrq);
 #endif /* CONFIG_PPP_MULTILINK */
 
-       dev->hard_start_xmit = ppp_start_xmit;
-
        ret = -EEXIST;
        mutex_lock(&all_ppp_mutex);
        if (unit < 0)