diff options
Diffstat (limited to 'sound/isa/sb/emu8000_synth.c')
-rw-r--r-- | sound/isa/sb/emu8000_synth.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/sound/isa/sb/emu8000_synth.c b/sound/isa/sb/emu8000_synth.c index f68e217416a6..3d72742b342f 100644 --- a/sound/isa/sb/emu8000_synth.c +++ b/sound/isa/sb/emu8000_synth.c | |||
@@ -33,12 +33,12 @@ MODULE_LICENSE("GPL"); | |||
33 | /* | 33 | /* |
34 | * create a new hardware dependent device for Emu8000 | 34 | * create a new hardware dependent device for Emu8000 |
35 | */ | 35 | */ |
36 | static int snd_emu8000_new_device(snd_seq_device_t *dev) | 36 | static int snd_emu8000_new_device(struct snd_seq_device *dev) |
37 | { | 37 | { |
38 | emu8000_t *hw; | 38 | struct snd_emu8000 *hw; |
39 | snd_emux_t *emu; | 39 | struct snd_emux *emu; |
40 | 40 | ||
41 | hw = *(emu8000_t**)SNDRV_SEQ_DEVICE_ARGPTR(dev); | 41 | hw = *(struct snd_emu8000**)SNDRV_SEQ_DEVICE_ARGPTR(dev); |
42 | if (hw == NULL) | 42 | if (hw == NULL) |
43 | return -EINVAL; | 43 | return -EINVAL; |
44 | 44 | ||
@@ -92,9 +92,9 @@ static int snd_emu8000_new_device(snd_seq_device_t *dev) | |||
92 | /* | 92 | /* |
93 | * free all resources | 93 | * free all resources |
94 | */ | 94 | */ |
95 | static int snd_emu8000_delete_device(snd_seq_device_t *dev) | 95 | static int snd_emu8000_delete_device(struct snd_seq_device *dev) |
96 | { | 96 | { |
97 | emu8000_t *hw; | 97 | struct snd_emu8000 *hw; |
98 | 98 | ||
99 | if (dev->driver_data == NULL) | 99 | if (dev->driver_data == NULL) |
100 | return 0; /* no synth was allocated actually */ | 100 | return 0; /* no synth was allocated actually */ |
@@ -118,11 +118,12 @@ static int snd_emu8000_delete_device(snd_seq_device_t *dev) | |||
118 | static int __init alsa_emu8000_init(void) | 118 | static int __init alsa_emu8000_init(void) |
119 | { | 119 | { |
120 | 120 | ||
121 | static snd_seq_dev_ops_t ops = { | 121 | static struct snd_seq_dev_ops ops = { |
122 | snd_emu8000_new_device, | 122 | snd_emu8000_new_device, |
123 | snd_emu8000_delete_device, | 123 | snd_emu8000_delete_device, |
124 | }; | 124 | }; |
125 | return snd_seq_device_register_driver(SNDRV_SEQ_DEV_ID_EMU8000, &ops, sizeof(emu8000_t*)); | 125 | return snd_seq_device_register_driver(SNDRV_SEQ_DEV_ID_EMU8000, &ops, |
126 | sizeof(struct snd_emu8000*)); | ||
126 | } | 127 | } |
127 | 128 | ||
128 | static void __exit alsa_emu8000_exit(void) | 129 | static void __exit alsa_emu8000_exit(void) |