aboutsummaryrefslogtreecommitdiffstats
path: root/sound/usb/usbaudio.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/usb/usbaudio.c')
-rw-r--r--sound/usb/usbaudio.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/usb/usbaudio.c b/sound/usb/usbaudio.c
index 2ab83129d9b0..f8c59210403e 100644
--- a/sound/usb/usbaudio.c
+++ b/sound/usb/usbaudio.c
@@ -3464,10 +3464,10 @@ static int snd_usb_audio_create(struct usb_device *dev, int idx,
3464 return -ENXIO; 3464 return -ENXIO;
3465 } 3465 }
3466 3466
3467 card = snd_card_new(index[idx], id[idx], THIS_MODULE, 0); 3467 err = snd_card_create(index[idx], id[idx], THIS_MODULE, 0, &card);
3468 if (card == NULL) { 3468 if (err < 0) {
3469 snd_printk(KERN_ERR "cannot create card instance %d\n", idx); 3469 snd_printk(KERN_ERR "cannot create card instance %d\n", idx);
3470 return -ENOMEM; 3470 return err;
3471 } 3471 }
3472 3472
3473 chip = kzalloc(sizeof(*chip), GFP_KERNEL); 3473 chip = kzalloc(sizeof(*chip), GFP_KERNEL);