ALSA: isa: Convert to snd_card_new() with a device pointer
[linux-2.6-microblaze.git] / sound / isa / ad1848 / ad1848.c
index e3f455b..093f22a 100644 (file)
@@ -91,7 +91,7 @@ static int snd_ad1848_probe(struct device *dev, unsigned int n)
        struct snd_pcm *pcm;
        int error;
 
-       error = snd_card_create(index[n], id[n], THIS_MODULE, 0, &card);
+       error = snd_card_new(dev, index[n], id[n], THIS_MODULE, 0, &card);
        if (error < 0)
                return error;
 
@@ -119,8 +119,6 @@ static int snd_ad1848_probe(struct device *dev, unsigned int n)
        if (thinkpad[n])
                strcat(card->longname, " [Thinkpad]");
 
-       snd_card_set_dev(card, dev);
-
        error = snd_card_register(card);
        if (error < 0)
                goto out;