Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ddec2c89 authored by Stephen Hemminger's avatar Stephen Hemminger Committed by David S. Miller
Browse files

IRDA: convert donauboe to net_device_ops

parent 816b26f5
Loading
Loading
Loading
Loading
+8 −4
Original line number Original line Diff line number Diff line
@@ -1524,6 +1524,13 @@ toshoboe_close (struct pci_dev *pci_dev)
  free_netdev(self->netdev);
  free_netdev(self->netdev);
}
}


static const struct net_device_ops toshoboe_netdev_ops = {
	.ndo_open	= toshoboe_net_open,
	.ndo_stop	= toshoboe_net_close,
	.ndo_start_xmit	= toshoboe_hard_xmit,
	.ndo_do_ioctl	= toshoboe_net_ioctl,
};

static int
static int
toshoboe_open (struct pci_dev *pci_dev, const struct pci_device_id *pdid)
toshoboe_open (struct pci_dev *pci_dev, const struct pci_device_id *pdid)
{
{
@@ -1657,10 +1664,7 @@ toshoboe_open (struct pci_dev *pci_dev, const struct pci_device_id *pdid)
#endif
#endif


  SET_NETDEV_DEV(dev, &pci_dev->dev);
  SET_NETDEV_DEV(dev, &pci_dev->dev);
  dev->hard_start_xmit = toshoboe_hard_xmit;
  dev->netdev_ops = &toshoboe_netdev_ops;
  dev->open = toshoboe_net_open;
  dev->stop = toshoboe_net_close;
  dev->do_ioctl = toshoboe_net_ioctl;


  err = register_netdev(dev);
  err = register_netdev(dev);
  if (err)
  if (err)