diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2008-11-19 22:22:30 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-11-19 22:42:54 -0800 |
commit | 52256cfc9f81cd8713e00a0713e68347bbffba5a (patch) | |
tree | e64dcced61c3e7a2bef8219e0ac8f86888faccd4 | |
parent | acc784263b0c46f3052fb4f155fdfe39b7001c98 (diff) |
ppp: convert to net_device_ops
Convert this driver to network device ops. Compile tested only.
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ppp_generic.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/net/ppp_generic.c b/drivers/net/ppp_generic.c index 274d495a1c50..c1e57c093e08 100644 --- a/drivers/net/ppp_generic.c +++ b/drivers/net/ppp_generic.c @@ -971,8 +971,13 @@ ppp_net_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) return err; } +static const struct net_device_ops ppp_netdev_ops = { + .ndo_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); |