master/ethernet.c
changeset 683 43700671b37a
parent 661 bc1de1362efb
child 689 880b556a6efc
equal deleted inserted replaced
682:c226d705c41a 683:43700671b37a
   115     eoe->tx_counter = 0;
   115     eoe->tx_counter = 0;
   116     eoe->rx_rate = 0;
   116     eoe->rx_rate = 0;
   117     eoe->tx_rate = 0;
   117     eoe->tx_rate = 0;
   118     eoe->rate_jiffies = 0;
   118     eoe->rate_jiffies = 0;
   119 
   119 
   120     sprintf(name, "eoe%u-%u", slave->master->index, slave->ring_position);
   120     sprintf(name, "eoe%us%u", slave->master->index, slave->ring_position);
   121 
   121 
   122     if (!(eoe->dev = alloc_netdev(sizeof(ec_eoe_t *), name, ether_setup))) {
   122     if (!(eoe->dev = alloc_netdev(sizeof(ec_eoe_t *), name, ether_setup))) {
   123         EC_ERR("Unable to allocate net_device for EoE handler!\n");
   123         EC_ERR("Unable to allocate net_device for EoE handler!\n");
   124         goto out_return;
   124         goto out_return;
   125     }
   125     }