equal
deleted
inserted
replaced
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 |