]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - sound/oss/omap-audio-tsc2101.c
[PATCH] ARM: OMAP: rework mutex_init() for RT compatibility
[linux-2.6-omap-h63xx.git] / sound / oss / omap-audio-tsc2101.c
index f8e6dacf1ff79609cac92972ecc4aa28f0abe50d..cbabcf59ad97ec5de0eed1704c4adbd25e268584 100644 (file)
@@ -326,7 +326,6 @@ static audio_state_t tsc2101_state = {
        .hw_remove      = omap_tsc2101_remove,
        .hw_suspend     = omap_tsc2101_suspend,
        .hw_resume      = omap_tsc2101_resume,
-       .mutex          = __MUTEX_INITIALIZER(tsc2101_state.mutex),
 };
 
 /* This will be defined in the Audio.h */
@@ -1031,6 +1030,8 @@ static int __init audio_tsc2101_init(void)
        if (machine_is_omap_osk() || machine_is_omap_innovator())
                return -ENODEV;
 
+       mutex_init(&tsc2101_state.mutex);
+
        /* register the codec with the audio driver */
        if ((err = audio_register_codec(&tsc2101_state))) {
                printk(KERN_ERR