]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - sound/mips/au1x00.c
Merge branch 'topic/snd_card_new-err' into topic/drop-l3
[linux-2.6-omap-h63xx.git] / sound / mips / au1x00.c
index 7c1afc96ab87c575d6b68921376728bb0332eaa7..3e763d6a5d67802d6f736e4df0dccfd88eff2224 100644 (file)
@@ -636,9 +636,10 @@ au1000_init(void)
        struct snd_card *card;
        struct snd_au1000 *au1000;
 
-       card = snd_card_new(-1, "AC97", THIS_MODULE, sizeof(struct snd_au1000));
-       if (card == NULL)
-               return -ENOMEM;
+       err = snd_card_create(-1, "AC97", THIS_MODULE,
+                             sizeof(struct snd_au1000), &card);
+       if (err < 0)
+               return err;
 
        card->private_free = snd_au1000_free;
        au1000 = card->private_data;