/*
* create a new hardware dependent device for Emu8000
*/
-static int snd_emu8000_probe(struct device *_dev)
+static int snd_emu8000_probe(struct snd_seq_device *dev)
{
- struct snd_seq_device *dev = to_seq_dev(_dev);
struct snd_emu8000 *hw;
struct snd_emux *emu;
/*
* free all resources
*/
-static int snd_emu8000_remove(struct device *_dev)
+static void snd_emu8000_remove(struct snd_seq_device *dev)
{
- struct snd_seq_device *dev = to_seq_dev(_dev);
struct snd_emu8000 *hw;
if (dev->driver_data == NULL)
- return 0; /* no synth was allocated actually */
+ return; /* no synth was allocated actually */
hw = dev->driver_data;
if (hw->pcm)
snd_util_memhdr_free(hw->memhdr);
hw->emu = NULL;
hw->memhdr = NULL;
- return 0;
}
/*
*/
static struct snd_seq_driver emu8000_driver = {
+ .probe = snd_emu8000_probe,
+ .remove = snd_emu8000_remove,
.driver = {
.name = KBUILD_MODNAME,
- .probe = snd_emu8000_probe,
- .remove = snd_emu8000_remove,
},
.id = SNDRV_SEQ_DEV_ID_EMU8000,
.argsize = sizeof(struct snd_emu8000 *),