diff options
author | Takashi Iwai <tiwai@suse.de> | 2014-01-29 13:22:20 (GMT) |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2014-02-12 10:18:00 (GMT) |
commit | 874b8d422e26e21dd432657e25f679c75440c1bc (patch) | |
tree | e88cbcfc629fc791e9310a968cdcd90bddbc4f10 /sound/usb/misc | |
parent | 60c5772b50fe8ce947685cfe3a80b9bf6ea92831 (diff) | |
download | linux-874b8d422e26e21dd432657e25f679c75440c1bc.tar.xz |
ALSA: usb: Convert to snd_card_new() with a device pointer
Also remove superfluous snd_card_set_dev() calls.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb/misc')
-rw-r--r-- | sound/usb/misc/ua101.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sound/usb/misc/ua101.c b/sound/usb/misc/ua101.c index 5093159..a1bab14 100644 --- a/sound/usb/misc/ua101.c +++ b/sound/usb/misc/ua101.c @@ -1243,8 +1243,9 @@ static int ua101_probe(struct usb_interface *interface, mutex_unlock(&devices_mutex); return -ENOENT; } - err = snd_card_create(index[card_index], id[card_index], THIS_MODULE, - sizeof(*ua), &card); + err = snd_card_new(&interface->dev, + index[card_index], id[card_index], THIS_MODULE, + sizeof(*ua), &card); if (err < 0) { mutex_unlock(&devices_mutex); return err; @@ -1283,8 +1284,6 @@ static int ua101_probe(struct usb_interface *interface, } } - snd_card_set_dev(card, &interface->dev); - err = detect_usb_format(ua); if (err < 0) goto probe_error; |