master/module.c
changeset 1606 6c5849669900
parent 1586 eb9185dfa8ac
child 1814 23fcca9ef1fb
equal deleted inserted replaced
1605:1a588303083a 1606:6c5849669900
   469                     str, master->index);
   469                     str, master->index);
   470 
   470 
   471             ec_device_attach(&master->main_device, net_dev, poll, module);
   471             ec_device_attach(&master->main_device, net_dev, poll, module);
   472             up(&master->device_sem);
   472             up(&master->device_sem);
   473             
   473             
   474             sprintf(net_dev->name, "ec%u", master->index);
   474             snprintf(net_dev->name, IFNAMSIZ, "ec%u", master->index);
       
   475 
   475             return &master->main_device; // offer accepted
   476             return &master->main_device; // offer accepted
   476         }
   477         }
   477         else {
   478         else {
   478             up(&master->device_sem);
   479             up(&master->device_sem);
   479 
   480