diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2008-11-20 20:32:15 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-11-20 20:32:15 -0800 |
commit | 748ff68fad9600593c6abe47856037602bd5d133 (patch) | |
tree | 96bc5e90ba9f66932562a7061f7403d17b316b61 /drivers/net/rrunner.c | |
parent | fd8f4997e35f2c9a8bfc4d797ec09a6ae7858e04 (diff) | |
download | linux-3.10-748ff68fad9600593c6abe47856037602bd5d133.tar.gz linux-3.10-748ff68fad9600593c6abe47856037602bd5d133.tar.bz2 linux-3.10-748ff68fad9600593c6abe47856037602bd5d133.zip |
hippi: convert driver to net_device_ops
Convert the HIPPI infrastructure for use with net_device_ops.
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/rrunner.c')
-rw-r--r-- | drivers/net/rrunner.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/drivers/net/rrunner.c b/drivers/net/rrunner.c index 6e4131f9a93..b4e3ddd0b59 100644 --- a/drivers/net/rrunner.c +++ b/drivers/net/rrunner.c @@ -63,6 +63,16 @@ MODULE_LICENSE("GPL"); static char version[] __devinitdata = "rrunner.c: v0.50 11/11/2002 Jes Sorensen (jes@wildopensource.com)\n"; + +static const struct net_device_ops rr_netdev_ops = { + .ndo_open = rr_open, + .ndo_stop = rr_close, + .ndo_do_ioctl = rr_ioctl, + .ndo_start_xmit = rr_start_xmit, + .ndo_change_mtu = hippi_change_mtu, + .ndo_set_mac_address = hippi_mac_addr, +}; + /* * Implementation notes: * @@ -115,10 +125,7 @@ static int __devinit rr_init_one(struct pci_dev *pdev, spin_lock_init(&rrpriv->lock); dev->irq = pdev->irq; - dev->open = &rr_open; - dev->hard_start_xmit = &rr_start_xmit; - dev->stop = &rr_close; - dev->do_ioctl = &rr_ioctl; + dev->netdev_ops = &rr_netdev_ops; dev->base_addr = pci_resource_start(pdev, 0); |