Commit 8fd2eca4 authored by Stephen Hemminger's avatar Stephen Hemminger

[IRDA]: Convert donauboe to alloc_irdadev().

parent 44f005ca
...@@ -1598,8 +1598,7 @@ toshoboe_open (struct pci_dev *pci_dev, const struct pci_device_id *pdid) ...@@ -1598,8 +1598,7 @@ toshoboe_open (struct pci_dev *pci_dev, const struct pci_device_id *pdid)
if ((err=pci_enable_device(pci_dev))) if ((err=pci_enable_device(pci_dev)))
return err; return err;
dev = alloc_netdev(sizeof (struct toshoboe_cb), "irda%d", dev = alloc_irdadev(sizeof (struct toshoboe_cb));
irda_device_setup);
if (dev == NULL) if (dev == NULL)
{ {
printk (KERN_ERR DRIVER_NAME ": can't allocate memory for " printk (KERN_ERR DRIVER_NAME ": can't allocate memory for "
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment