aboutsummaryrefslogtreecommitdiffstats
path: root/sound/isa/gus/gusextreme.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/isa/gus/gusextreme.c')
-rw-r--r--sound/isa/gus/gusextreme.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sound/isa/gus/gusextreme.c b/sound/isa/gus/gusextreme.c
index 38e1e3260c24..28a16936a397 100644
--- a/sound/isa/gus/gusextreme.c
+++ b/sound/isa/gus/gusextreme.c
@@ -242,8 +242,8 @@ static int snd_gusextreme_probe(struct device *dev, unsigned int n)
242 struct snd_opl3 *opl3; 242 struct snd_opl3 *opl3;
243 int error; 243 int error;
244 244
245 error = snd_card_create(index[n], id[n], THIS_MODULE, 245 error = snd_card_new(dev, index[n], id[n], THIS_MODULE,
246 sizeof(struct snd_es1688), &card); 246 sizeof(struct snd_es1688), &card);
247 if (error < 0) 247 if (error < 0)
248 return error; 248 return error;
249 249
@@ -328,8 +328,6 @@ static int snd_gusextreme_probe(struct device *dev, unsigned int n)
328 "irq %i&%i, dma %i&%i", es1688->port, 328 "irq %i&%i, dma %i&%i", es1688->port,
329 gus->gf1.irq, es1688->irq, gus->gf1.dma1, es1688->dma8); 329 gus->gf1.irq, es1688->irq, gus->gf1.dma1, es1688->dma8);
330 330
331 snd_card_set_dev(card, dev);
332
333 error = snd_card_register(card); 331 error = snd_card_register(card);
334 if (error < 0) 332 if (error < 0)
335 goto out; 333 goto out;