]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
Staging: line6: convert to snd_card_create()
authorAlexander Beregalov <a.beregalov@gmail.com>
Sun, 29 Mar 2009 15:59:13 +0000 (19:59 +0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 17 Apr 2009 18:06:25 +0000 (11:06 -0700)
Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/line6/audio.c

index 3aa946899ced20495f3245eea0bbd0b8440c2ec6..e2ac8d60f8c27195441bf04f5e0d8afb6917e8f0 100644 (file)
@@ -27,11 +27,12 @@ int line6_init_audio(struct usb_line6 *line6)
 {
        static int dev;
        struct snd_card *card;
+       int err;
 
-       card = snd_card_new(line6_index[dev], line6_id[dev], THIS_MODULE, 0);
-
-       if (card == NULL)
-               return -ENOMEM;
+       err = snd_card_create(line6_index[dev], line6_id[dev], THIS_MODULE, 0,
+                             &card);
+       if (err < 0)
+               return err;
 
        line6->card = card;