]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - sound/core/seq/seq_lock.c
SOUND: fix race in device_create
[karo-tx-linux.git] / sound / core / seq / seq_lock.c
index b09cee058fa7bac3e2ff705a36ef53872d237338..54f921edda793aab4948b0c72259528ee0885d9d 100644 (file)
@@ -19,7 +19,6 @@
  *
  */
 
-#include <sound/driver.h>
 #include <sound/core.h>
 #include "seq_lock.h"
 
@@ -39,10 +38,11 @@ void snd_use_lock_sync_helper(snd_use_lock_t *lockp, const char *file, int line)
                        snd_printk(KERN_WARNING "seq_lock: timeout [%d left] in %s:%d\n", atomic_read(lockp), file, line);
                        break;
                }
-               set_current_state(TASK_UNINTERRUPTIBLE);
-               schedule_timeout(1);
+               schedule_timeout_uninterruptible(1);
                max_count--;
        }
 }
 
+EXPORT_SYMBOL(snd_use_lock_sync_helper);
+
 #endif