Commit 4d248241 authored by Stephen Hemminger's avatar Stephen Hemminger

[IRDA]: Convert via-ircc to alloc_irdadev().

parent 591eb992
...@@ -335,8 +335,7 @@ static __devinit int via_ircc_open(int i, chipio_t * info, unsigned int id) ...@@ -335,8 +335,7 @@ static __devinit int via_ircc_open(int i, chipio_t * info, unsigned int id)
return -1; return -1;
/* Allocate new instance of the driver */ /* Allocate new instance of the driver */
dev = alloc_netdev(sizeof(struct via_ircc_cb), "irda%d", dev = alloc_irdadev(sizeof(struct via_ircc_cb));
irda_device_setup);
if (dev == NULL) if (dev == NULL)
return -ENOMEM; return -ENOMEM;
......
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