Skip to content

Commit

Permalink
[ALSA] drivers - Add missing snd_card_set_dev()
Browse files Browse the repository at this point in the history
Added the missing call of snd_card_set_dev() in drivers/*

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
  • Loading branch information
Takashi Iwai authored and Jaroslav Kysela committed Jan 31, 2008
1 parent 4f1895b commit d47ac43
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sound/drivers/ml403-ac97cr.c
Original file line number Diff line number Diff line change
Expand Up @@ -1312,6 +1312,8 @@ static int __devinit snd_ml403_ac97cr_probe(struct platform_device *pfdev)
(unsigned long)ml403_ac97cr->port, ml403_ac97cr->irq,
ml403_ac97cr->capture_irq, dev + 1);

snd_card_set_dev(card, &pfdev->dev);

err = snd_card_register(card);
if (err < 0) {
snd_card_free(card);
Expand Down
2 changes: 2 additions & 0 deletions sound/drivers/mts64.c
Original file line number Diff line number Diff line change
Expand Up @@ -1008,6 +1008,8 @@ static int __devinit snd_mts64_probe(struct platform_device *pdev)

platform_set_drvdata(pdev, card);

snd_card_set_dev(card, &pdev->dev);

/* At this point card will be usable */
if ((err = snd_card_register(card)) < 0) {
snd_printd("Cannot register card\n");
Expand Down
2 changes: 2 additions & 0 deletions sound/drivers/portman2x4.c
Original file line number Diff line number Diff line change
Expand Up @@ -797,6 +797,8 @@ static int __devinit snd_portman_probe(struct platform_device *pdev)

platform_set_drvdata(pdev, card);

snd_card_set_dev(card, &pdev->dev);

/* At this point card will be usable */
if ((err = snd_card_register(card)) < 0) {
snd_printd("Cannot register card\n");
Expand Down

0 comments on commit d47ac43

Please sign in to comment.