]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - sound/drivers/pcsp/pcsp.c
Merge branch 'topic/snd_card_new-err' into topic/drop-l3
[linux-2.6-omap-h63xx.git] / sound / drivers / pcsp / pcsp.c
index c7c744c6fc0b39b34c01855f052bcb86fc91b609..b60cef257b589288a7339157bfdbc9e009b5c5bb 100644 (file)
@@ -98,9 +98,9 @@ static int __devinit snd_card_pcsp_probe(int devnum, struct device *dev)
        hrtimer_init(&pcsp_chip.timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
        pcsp_chip.timer.function = pcsp_do_timer;
 
-       card = snd_card_new(index, id, THIS_MODULE, 0);
-       if (!card)
-               return -ENOMEM;
+       err = snd_card_create(index, id, THIS_MODULE, 0, &card);
+       if (err < 0)
+               return err;
 
        err = snd_pcsp_create(card);
        if (err < 0) {