Fixed missing semaphore initialization.
authorFlorian Pose <fp@igh-essen.com>
Mon, 12 Mar 2007 16:40:23 +0000
changeset 653 33aa0e7e5a68
parent 652 15cff76b66c7
child 654 8278e1e27010
Fixed missing semaphore initialization.
master/module.c
--- a/master/module.c	Mon Mar 12 13:59:23 2007 +0000
+++ b/master/module.c	Mon Mar 12 16:40:23 2007 +0000
@@ -107,6 +107,8 @@
 
     EC_INFO("Master driver %s\n", EC_MASTER_VERSION);
 
+    init_MUTEX(&master_sem);
+
     // init kobject and add it to the hierarchy
     memset(&kobj, 0x00, sizeof(struct kobject));
     kobject_init(&kobj); // no ktype