git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vserver 1.9.3
[linux-2.6.git]
/
sound
/
pci
/
emu10k1
/
emu10k1_synth.c
diff --git
a/sound/pci/emu10k1/emu10k1_synth.c
b/sound/pci/emu10k1/emu10k1_synth.c
index
9e562ae
..
2af8ffa
100644
(file)
--- a/
sound/pci/emu10k1/emu10k1_synth.c
+++ b/
sound/pci/emu10k1/emu10k1_synth.c
@@
-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 */
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;
spin_lock_irqsave(&hw->voice_lock, flags);
hw->synth = NULL;
hw->get_synth_voice = NULL;