summaryrefslogtreecommitdiffstats
path: root/drivers/media/usb/tm6000/tm6000-alsa.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2014-01-29 14:48:43 +0100
committerTakashi Iwai <tiwai@suse.de>2014-02-14 08:14:09 +0100
commite735688875208fa2c0bec3be6692941e701c48a8 (patch)
tree4e24136a49d244a62e4e4faddd1f62e910e6d2ef /drivers/media/usb/tm6000/tm6000-alsa.c
parentHID: prodikeys: Convert to snd_card_new() with a device pointer (diff)
downloadlinux-e735688875208fa2c0bec3be6692941e701c48a8.tar.xz
linux-e735688875208fa2c0bec3be6692941e701c48a8.zip
[media] 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 'drivers/media/usb/tm6000/tm6000-alsa.c')
-rw-r--r--drivers/media/usb/tm6000/tm6000-alsa.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/usb/tm6000/tm6000-alsa.c b/drivers/media/usb/tm6000/tm6000-alsa.c
index 813c1ec53608..3239cd62e452 100644
--- a/drivers/media/usb/tm6000/tm6000-alsa.c
+++ b/drivers/media/usb/tm6000/tm6000-alsa.c
@@ -431,7 +431,8 @@ static int tm6000_audio_init(struct tm6000_core *dev)
if (!enable[devnr])
return -ENOENT;
- rc = snd_card_create(index[devnr], "tm6000", THIS_MODULE, 0, &card);
+ rc = snd_card_new(&dev->udev->dev, index[devnr], "tm6000",
+ THIS_MODULE, 0, &card);
if (rc < 0) {
snd_printk(KERN_ERR "cannot create card instance %d\n", devnr);
return rc;
@@ -445,7 +446,6 @@ static int tm6000_audio_init(struct tm6000_core *dev)
le16_to_cpu(dev->udev->descriptor.idVendor),
le16_to_cpu(dev->udev->descriptor.idProduct));
snd_component_add(card, component);
- snd_card_set_dev(card, &dev->udev->dev);
chip = kzalloc(sizeof(struct snd_tm6000_card), GFP_KERNEL);
if (!chip) {