From 0955348c0b3ac4c07bdf357c2cdf90fc3ca625c5 Mon Sep 17 00:00:00 2001 From: Florian Pose <fp@igh-essen.com> Date: Wed, 22 Oct 2008 14:58:22 +0000 Subject: [PATCH] Removed fix setting of device name to 'ec0'. --- devices/e100-2.6.20-ethercat.c | 1 - devices/e100-2.6.24-ethercat.c | 1 - devices/e100-2.6.26-ethercat.c | 1 - 3 files changed, 3 deletions(-) diff --git a/devices/e100-2.6.20-ethercat.c b/devices/e100-2.6.20-ethercat.c index 39b8b81b..6df1d214 100644 --- a/devices/e100-2.6.20-ethercat.c +++ b/devices/e100-2.6.20-ethercat.c @@ -2811,7 +2811,6 @@ static int __devinit e100_probe(struct pci_dev *pdev, // 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; diff --git a/devices/e100-2.6.24-ethercat.c b/devices/e100-2.6.24-ethercat.c index 2871b8d1..aa4e5303 100644 --- a/devices/e100-2.6.24-ethercat.c +++ b/devices/e100-2.6.24-ethercat.c @@ -2824,7 +2824,6 @@ static int __devinit e100_probe(struct pci_dev *pdev, // 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; diff --git a/devices/e100-2.6.26-ethercat.c b/devices/e100-2.6.26-ethercat.c index 8dd57f9d..3b1ddc4f 100644 --- a/devices/e100-2.6.26-ethercat.c +++ b/devices/e100-2.6.26-ethercat.c @@ -2895,7 +2895,6 @@ static int __devinit e100_probe(struct pci_dev *pdev, // 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; -- GitLab