]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
cx231xx: Convert to snd_card_create()
authorMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 7 Apr 2009 00:25:29 +0000 (21:25 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 7 Apr 2009 00:44:53 +0000 (21:44 -0300)
Convert from snd_card_new() to the new snd_card_create() function.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/cx231xx/cx231xx-audio.c

index 9ab0628b9a116186e520eaaa29db13c722feeae6..7793d60966db51fc36fb2de5bde7440030977068 100644 (file)
@@ -478,9 +478,10 @@ static int cx231xx_audio_init(struct cx231xx *dev)
        cx231xx_info("cx231xx-audio.c: probing for cx231xx "
                     "non standard usbaudio\n");
 
-       card = snd_card_new(index[devnr], "Cx231xx Audio", THIS_MODULE, 0);
-       if (card == NULL)
-               return -ENOMEM;
+       err = snd_card_create(index[devnr], "Cx231xx Audio", THIS_MODULE,
+                             0, &card);
+       if (err < 0)
+               return err;
 
        spin_lock_init(&adev->slock);
        err = snd_pcm_new(card, "Cx231xx Audio", 0, 0, 1, &pcm);