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