summaryrefslogtreecommitdiffstats
path: root/sound/sh/sh_dac_audio.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/sh_dac_audio.c
parentALSA: ppc: Convert to snd_card_new() with a device pointer (diff)
downloadlinux-e7182ac5a3de8836a7b03655a5b8d6b71873fcbc.tar.xz
linux-e7182ac5a3de8836a7b03655a5b8d6b71873fcbc.zip
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/sh_dac_audio.c')
-rw-r--r--sound/sh/sh_dac_audio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/sh/sh_dac_audio.c b/sound/sh/sh_dac_audio.c
index 7c9422c4fc0f..d1fb74dabbd1 100644
--- a/sound/sh/sh_dac_audio.c
+++ b/sound/sh/sh_dac_audio.c
@@ -396,7 +396,7 @@ static int snd_sh_dac_probe(struct platform_device *devptr)
struct snd_card *card;
int err;
- err = snd_card_create(index, id, THIS_MODULE, 0, &card);
+ err = snd_card_new(&devptr->dev, index, id, THIS_MODULE, 0, &card);
if (err < 0) {
snd_printk(KERN_ERR "cannot allocate the card\n");
return err;