summaryrefslogtreecommitdiffstats
path: root/sound/sh/aica.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2014-01-29 14:40:03 +0100
committerTakashi Iwai <tiwai@suse.de>2014-02-14 08:14:07 +0100
commite7182ac5a3de8836a7b03655a5b8d6b71873fcbc (patch)
tree1a9838f255de0a87121ed79f5bfc594b31382556 /sound/sh/aica.c
parent1076879744d1b7709d5b7556cfe038039fbc01f9 (diff)
downloadop-kernel-dev-e7182ac5a3de8836a7b03655a5b8d6b71873fcbc.zip
op-kernel-dev-e7182ac5a3de8836a7b03655a5b8d6b71873fcbc.tar.gz
ALSA: sh: 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/sh/aica.c')
-rw-r--r--sound/sh/aica.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sound/sh/aica.c b/sound/sh/aica.c
index 78a3697..47849ea 100644
--- a/sound/sh/aica.c
+++ b/sound/sh/aica.c
@@ -608,8 +608,8 @@ static int snd_aica_probe(struct platform_device *devptr)
dreamcastcard = kmalloc(sizeof(struct snd_card_aica), GFP_KERNEL);
if (unlikely(!dreamcastcard))
return -ENOMEM;
- err = snd_card_create(index, SND_AICA_DRIVER, THIS_MODULE, 0,
- &dreamcastcard->card);
+ err = snd_card_new(&devptr->dev, index, SND_AICA_DRIVER,
+ THIS_MODULE, 0, &dreamcastcard->card);
if (unlikely(err < 0)) {
kfree(dreamcastcard);
return err;
@@ -624,7 +624,6 @@ static int snd_aica_probe(struct platform_device *devptr)
err = snd_aicapcmchip(dreamcastcard, 0);
if (unlikely(err < 0))
goto freedreamcast;
- snd_card_set_dev(dreamcastcard->card, &devptr->dev);
dreamcastcard->timer.data = 0;
dreamcastcard->channel = NULL;
/* Add basic controls */
OpenPOWER on IntegriCloud