drivers/usb/gadget: Convert to snd_card_create()
authorTakashi Iwai <tiwai@suse.de>
Mon, 12 Jan 2009 14:19:08 +0000 (15:19 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 12 Jan 2009 14:25:47 +0000 (15:25 +0100)
Convert from snd_card_new() to the new snd_card_create() function
for gmidi.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
drivers/usb/gadget/gmidi.c

index 60d3f9e9b51fdef421f239b3055b09325a30f74a..14e09abbddfcb0463e701a08cc3ec48702686875 100644 (file)
@@ -1099,10 +1099,9 @@ static int gmidi_register_card(struct gmidi_device *dev)
                .dev_free = gmidi_snd_free,
        };
 
-       card = snd_card_new(index, id, THIS_MODULE, 0);
-       if (!card) {
-               ERROR(dev, "snd_card_new failed\n");
-               err = -ENOMEM;
+       err = snd_card_create(index, id, THIS_MODULE, 0, &card);
+       if (err < 0) {
+               ERROR(dev, "snd_card_create failed\n");
                goto fail;
        }
        dev->card = card;