Removed fix setting of device name to 'ec0'.
authorFlorian Pose <fp@igh-essen.com>
Wed, 22 Oct 2008 14:58:22 +0000
changeset 1300 428bf6d7c905
parent 1299 dd8e55d97280
child 1301 7bba5b15289e
Removed fix setting of device name to 'ec0'.
devices/e100-2.6.20-ethercat.c
devices/e100-2.6.24-ethercat.c
devices/e100-2.6.26-ethercat.c
--- a/devices/e100-2.6.20-ethercat.c	Wed Oct 22 12:04:07 2008 +0000
+++ b/devices/e100-2.6.20-ethercat.c	Wed Oct 22 14:58:22 2008 +0000
@@ -2811,7 +2811,6 @@
 	// offer device to EtherCAT master module
 	nic->ecdev = ecdev_offer(netdev, e100_ec_poll, THIS_MODULE);
     if (nic->ecdev) {
-        strcpy(netdev->name, "ec0");
 		if (ecdev_open(nic->ecdev)) {
 			ecdev_withdraw(nic->ecdev);
 			goto err_out_free;
--- a/devices/e100-2.6.24-ethercat.c	Wed Oct 22 12:04:07 2008 +0000
+++ b/devices/e100-2.6.24-ethercat.c	Wed Oct 22 14:58:22 2008 +0000
@@ -2824,7 +2824,6 @@
 	// offer device to EtherCAT master module
 	nic->ecdev = ecdev_offer(netdev, e100_ec_poll, THIS_MODULE);
 	if (nic->ecdev) {
-		strcpy(netdev->name, "ec0");
 		if (ecdev_open(nic->ecdev)) {
 			ecdev_withdraw(nic->ecdev);
 			goto err_out_free;
--- a/devices/e100-2.6.26-ethercat.c	Wed Oct 22 12:04:07 2008 +0000
+++ b/devices/e100-2.6.26-ethercat.c	Wed Oct 22 14:58:22 2008 +0000
@@ -2895,7 +2895,6 @@
 	// offer device to EtherCAT master module
 	nic->ecdev = ecdev_offer(netdev, e100_ec_poll, THIS_MODULE);
 	if (nic->ecdev) {
-		strcpy(netdev->name, "ec0");
 		if (ecdev_open(nic->ecdev)) {
 			ecdev_withdraw(nic->ecdev);
 			goto err_out_free;