[PATCH] (7/16) af_ir use alloc_irdadev

DORMANTno replies

From: Stephen Hemminger <hidden>
Date: 2003-09-30 22:06:05

diff -Nru a/drivers/net/irda/w83977af_ir.c b/drivers/net/irda/w83977af_ir.c
--- a/drivers/net/irda/w83977af_ir.c	Tue Sep 30 11:56:41 2003
+++ b/drivers/net/irda/w83977af_ir.c	Tue Sep 30 11:56:41 2003
@@ -170,8 +170,7 @@
 	/*
 	 *  Allocate new instance of the driver
 	 */
-	dev = alloc_netdev(sizeof(struct w83977af_ir), "irda%d",
-			   irda_device_setup);
+	dev = alloc_irdadev(sizeof(struct w83977af_ir));
 	if (dev == NULL) {
 		printk( KERN_ERR "IrDA: Can't allocate memory for "
 			"IrDA control block!\n");
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help