master/module.c
changeset 1581 e51cf2af3ff9
parent 1548 b4ad9d06962d
parent 1579 326d47aa986c
child 1586 eb9185dfa8ac
equal deleted inserted replaced
1578:30f065ea5271 1581:e51cf2af3ff9
    99 {
    99 {
   100     int i, ret = 0;
   100     int i, ret = 0;
   101 
   101 
   102     EC_INFO("Master driver %s\n", EC_MASTER_VERSION);
   102     EC_INFO("Master driver %s\n", EC_MASTER_VERSION);
   103 
   103 
   104     init_MUTEX(&master_sem);
   104     sema_init(&master_sem, 1);
   105 
   105 
   106     if (master_count) {
   106     if (master_count) {
   107         if (alloc_chrdev_region(&device_number, 0, master_count, "EtherCAT")) {
   107         if (alloc_chrdev_region(&device_number, 0, master_count, "EtherCAT")) {
   108             EC_ERR("Failed to obtain device number(s)!\n");
   108             EC_ERR("Failed to obtain device number(s)!\n");
   109             ret = -EBUSY;
   109             ret = -EBUSY;