Commit f414d1e6 authored by Stephen Hemminger's avatar Stephen Hemminger

[IRDA]: Convert w83977af_ir to alloc_irdadev().

parent 64b8aa58
...@@ -170,8 +170,7 @@ int w83977af_open(int i, unsigned int iobase, unsigned int irq, ...@@ -170,8 +170,7 @@ int w83977af_open(int i, unsigned int iobase, unsigned int irq,
/* /*
* Allocate new instance of the driver * Allocate new instance of the driver
*/ */
dev = alloc_netdev(sizeof(struct w83977af_ir), "irda%d", dev = alloc_irdadev(sizeof(struct w83977af_ir));
irda_device_setup);
if (dev == NULL) { if (dev == NULL) {
printk( KERN_ERR "IrDA: Can't allocate memory for " printk( KERN_ERR "IrDA: Can't allocate memory for "
"IrDA control block!\n"); "IrDA control block!\n");
......
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