ALSA: Convert to snd_card_create() in sound/isa/*
[linux-2.6-block.git] / sound / isa / es1688 / es1688.c
index b46377139cf81d4ffc73d1e10572f6996c5ad4c3..d746750410ea93b29864cea00d8ab698d4b3c963 100644 (file)
@@ -122,9 +122,9 @@ static int __devinit snd_es1688_probe(struct device *dev, unsigned int n)
        struct snd_pcm *pcm;
        int error;
 
-       card = snd_card_new(index[n], id[n], THIS_MODULE, 0);
-       if (!card)
-               return -EINVAL;
+       error = snd_card_create(index[n], id[n], THIS_MODULE, 0, &card);
+       if (error < 0)
+               return error;
 
        error = snd_es1688_legacy_create(card, dev, n, &chip);
        if (error < 0)