devices/forcedeth-2.6.19-ethercat.c
changeset 639 aa23c48dca2d
parent 593 78c838980258
child 670 f57de4585a5f
--- a/devices/forcedeth-2.6.19-ethercat.c	Thu Mar 08 13:06:20 2007 +0000
+++ b/devices/forcedeth-2.6.19-ethercat.c	Thu Mar 08 18:15:25 2007 +0000
@@ -4628,8 +4628,7 @@
 	np->autoneg = 1;
 
 	// offer device to EtherCAT master module
-	if (ecdev_offer(dev, &np->ecdev, "forcedeth", board_idx, ec_poll,
-				THIS_MODULE)) {
+	if (ecdev_offer(dev, ec_poll, THIS_MODULE, &np->ecdev)) {
 		printk(KERN_ERR "forcedeth: Failed to offer device.\n");
 		goto out_error;
 	}