master/module.c
changeset 1548 b4ad9d06962d
parent 1469 873e4ee3d5ec
child 1581 e51cf2af3ff9
equal deleted inserted replaced
1545:cd9672f63886 1548:b4ad9d06962d
   461                     str, master->index);
   461                     str, master->index);
   462 
   462 
   463             ec_device_attach(&master->main_device, net_dev, poll, module);
   463             ec_device_attach(&master->main_device, net_dev, poll, module);
   464             up(&master->device_sem);
   464             up(&master->device_sem);
   465             
   465             
   466             sprintf(net_dev->name, "ec%u", master->index);
   466             snprintf(net_dev->name, IFNAMSIZ, "ec%u", master->index);
       
   467 
   467             return &master->main_device; // offer accepted
   468             return &master->main_device; // offer accepted
   468         }
   469         }
   469         else {
   470         else {
   470             up(&master->device_sem);
   471             up(&master->device_sem);
   471 
   472