Commit 5f32c314 authored by Takashi Iwai's avatar Takashi Iwai

ALSA: parisc: Convert to snd_card_new() with a device pointer

Also remove superfluous snd_card_set_dev() calls.
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent bee1bb19
...@@ -959,8 +959,6 @@ snd_harmony_create(struct snd_card *card, ...@@ -959,8 +959,6 @@ snd_harmony_create(struct snd_card *card,
goto free_and_ret; goto free_and_ret;
} }
snd_card_set_dev(card, &padev->dev);
*rchip = h; *rchip = h;
return 0; return 0;
...@@ -977,7 +975,7 @@ snd_harmony_probe(struct parisc_device *padev) ...@@ -977,7 +975,7 @@ snd_harmony_probe(struct parisc_device *padev)
struct snd_card *card; struct snd_card *card;
struct snd_harmony *h; struct snd_harmony *h;
err = snd_card_create(index, id, THIS_MODULE, 0, &card); err = snd_card_new(&padev->dev, index, id, THIS_MODULE, 0, &card);
if (err < 0) if (err < 0)
return err; return err;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment