vserver 1.9.3
[linux-2.6.git] / sound / pci / emu10k1 / emu10k1_synth.c
index 9e562ae..2af8ffa 100644 (file)
@@ -85,9 +85,9 @@ int snd_emu10k1_synth_delete_device(snd_seq_device_t *dev)
        if (dev->driver_data == NULL)
                return 0; /* not registered actually */
 
-       emu = snd_magic_cast(snd_emux_t, dev->driver_data, return -EINVAL);
+       emu = dev->driver_data;
 
-       hw = snd_magic_cast(emu10k1_t, emu->hw, return -EINVAL);
+       hw = emu->hw;
        spin_lock_irqsave(&hw->voice_lock, flags);
        hw->synth = NULL;
        hw->get_synth_voice = NULL;