From: Alexander Beregalov Date: Sun, 29 Mar 2009 15:59:13 +0000 (+0400) Subject: Staging: line6: convert to snd_card_create() X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=a405f43ee336fb890fd967625cc133f9d2e59a9f;p=openwrt%2Fstaging%2Fblogic.git Staging: line6: convert to snd_card_create() Signed-off-by: Alexander Beregalov Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/line6/audio.c b/drivers/staging/line6/audio.c index 3aa946899ced..e2ac8d60f8c2 100644 --- a/drivers/staging/line6/audio.c +++ b/drivers/staging/line6/audio.c @@ -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;