Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

IRDA: convert donauboe to net_device_ops

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Stephen Hemminger and committed by
David S. Miller
ddec2c89 816b26f5

+8 -4
+8 -4
drivers/net/irda/donauboe.c
··· 1524 1524 free_netdev(self->netdev); 1525 1525 } 1526 1526 1527 + static const struct net_device_ops toshoboe_netdev_ops = { 1528 + .ndo_open = toshoboe_net_open, 1529 + .ndo_stop = toshoboe_net_close, 1530 + .ndo_start_xmit = toshoboe_hard_xmit, 1531 + .ndo_do_ioctl = toshoboe_net_ioctl, 1532 + }; 1533 + 1527 1534 static int 1528 1535 toshoboe_open (struct pci_dev *pci_dev, const struct pci_device_id *pdid) 1529 1536 { ··· 1664 1657 #endif 1665 1658 1666 1659 SET_NETDEV_DEV(dev, &pci_dev->dev); 1667 - dev->hard_start_xmit = toshoboe_hard_xmit; 1668 - dev->open = toshoboe_net_open; 1669 - dev->stop = toshoboe_net_close; 1670 - dev->do_ioctl = toshoboe_net_ioctl; 1660 + dev->netdev_ops = &toshoboe_netdev_ops; 1671 1661 1672 1662 err = register_netdev(dev); 1673 1663 if (err)