diff options
Diffstat (limited to 'sound/isa/gus/gusclassic.c')
-rw-r--r-- | sound/isa/gus/gusclassic.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/isa/gus/gusclassic.c b/sound/isa/gus/gusclassic.c index 1adc1b924f39..7ce29ffa1af9 100644 --- a/sound/isa/gus/gusclassic.c +++ b/sound/isa/gus/gusclassic.c | |||
@@ -149,7 +149,7 @@ static int snd_gusclassic_probe(struct device *dev, unsigned int n) | |||
149 | struct snd_gus_card *gus; | 149 | struct snd_gus_card *gus; |
150 | int error; | 150 | int error; |
151 | 151 | ||
152 | error = snd_card_create(index[n], id[n], THIS_MODULE, 0, &card); | 152 | error = snd_card_new(dev, index[n], id[n], THIS_MODULE, 0, &card); |
153 | if (error < 0) | 153 | if (error < 0) |
154 | return error; | 154 | return error; |
155 | 155 | ||
@@ -199,8 +199,6 @@ static int snd_gusclassic_probe(struct device *dev, unsigned int n) | |||
199 | sprintf(card->longname + strlen(card->longname), | 199 | sprintf(card->longname + strlen(card->longname), |
200 | "&%d", gus->gf1.dma2); | 200 | "&%d", gus->gf1.dma2); |
201 | 201 | ||
202 | snd_card_set_dev(card, dev); | ||
203 | |||
204 | error = snd_card_register(card); | 202 | error = snd_card_register(card); |
205 | if (error < 0) | 203 | if (error < 0) |
206 | goto out; | 204 | goto out; |