ALSA: Convert to snd_card_create() in other sound/*
[linux-2.6-block.git] / sound / ppc / powermac.c
index c936225771ba0cd8381686c3c6b7424f288b051a..2e18ed0ea899f893e04c939d891b5010759e4afc 100644 (file)
@@ -58,9 +58,9 @@ static int __init snd_pmac_probe(struct platform_device *devptr)
        char *name_ext;
        int err;
 
-       card = snd_card_new(index, id, THIS_MODULE, 0);
-       if (card == NULL)
-               return -ENOMEM;
+       err = snd_card_create(index, id, THIS_MODULE, 0, &card);
+       if (err < 0)
+               return err;
 
        if ((err = snd_pmac_new(card, &chip)) < 0)
                goto __error;