Skip to content

Commit

Permalink
[ALSA] Add snd_card_set_dev()
Browse files Browse the repository at this point in the history
ARM AACI PL041 driver,PARISC Harmony driver
Added snd_card_set_dev() calls to register the device pointer for the card.

Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
tiwai authored and Jaroslav Kysela committed Sep 12, 2005
1 parent 0ca2161 commit a76af19
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sound/arm/aaci.c
Original file line number Diff line number Diff line change
Expand Up @@ -900,6 +900,8 @@ static int __devinit aaci_probe(struct amba_device *dev, void *id)
if (ret)
goto out;

snd_card_set_dev(aaci->card, &dev->dev);

ret = snd_card_register(aaci->card);
if (ret == 0) {
dev_info(&dev->dev, "%s, fifo %d\n", aaci->card->longname,
Expand Down
2 changes: 2 additions & 0 deletions sound/parisc/harmony.c
Original file line number Diff line number Diff line change
Expand Up @@ -880,6 +880,8 @@ snd_harmony_create(snd_card_t *card,
goto free_and_ret;
}

snd_card_set_dev(card, &padev->dev);

*rchip = h;

return 0;
Expand Down

0 comments on commit a76af19

Please sign in to comment.