Subject: [PATCH 27/33] ppp: convert to net_device_ops

From: Stephen Hemminger <[email-masked]>
Date: Mon, 17 Nov 2008 15:42:34 -0800

Convert this driver to network device ops. Compile tested only.

Signed-off-by: Stephen Hemminger <[email-masked]>

--- a/drivers/net/ppp_generic.c	2008-11-04 13:58:06.000000000 -0800
+++ b/drivers/net/ppp_generic.c	2008-11-17 13:22:34.000000000 -0800
@@ -971,8 +971,13 @@ ppp_net_ioctl(struct net_device *dev, st
 	return err;
 }
 
+static const struct net_device_ops ppp_netdev_ops = {
+	.do_ioctl = ppp_net_ioctl,
+};
+
 static void ppp_setup(struct net_device *dev)
 {
+	dev->netdev_ops = &ppp_netdev_ops;
 	dev->hard_header_len = PPP_HDRLEN;
 	dev->mtu = PPP_MTU;
 	dev->addr_len = 0;
@@ -2436,7 +2441,6 @@ ppp_create_interface(int unit, int *retp
 	dev->priv = ppp;
 
 	dev->hard_start_xmit = ppp_start_xmit;
-	dev->do_ioctl = ppp_net_ioctl;
 
 	ret = -EEXIST;
 	mutex_lock(&all_ppp_mutex);

--