]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - sound/ppc/snd_ps3.c
Merge commit 's3c-iis-header' into HEAD
[linux-2.6-omap-h63xx.git] / sound / ppc / snd_ps3.c
index 8f9e3859c37ca70f802fdb5c3f8f25ed75731b8d..ef2c3f417175aaec7b2cd656e43866f28f9289db 100644 (file)
@@ -969,11 +969,9 @@ static int __init snd_ps3_driver_probe(struct ps3_system_bus_device *dev)
        }
 
        /* create card instance */
-       the_card.card = snd_card_new(index, id, THIS_MODULE, 0);
-       if (!the_card.card) {
-               ret = -ENXIO;
+       ret = snd_card_create(index, id, THIS_MODULE, 0, &the_card.card);
+       if (ret < 0)
                goto clean_irq;
-       }
 
        strcpy(the_card.card->driver, "PS3");
        strcpy(the_card.card->shortname, "PS3");