]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[ALSA] Add snd_card_set_dev()
authorTakashi Iwai <tiwai@suse.de>
Mon, 5 Sep 2005 14:56:40 +0000 (16:56 +0200)
committerJaroslav Kysela <perex@suse.cz>
Mon, 12 Sep 2005 08:41:33 +0000 (10:41 +0200)
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 <tiwai@suse.de>
sound/arm/aaci.c
sound/parisc/harmony.c

index 98877030d579fa6f641dee8dca596241940f32e6..34195b7486082f6550997947459a38b554800ea9 100644 (file)
@@ -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,
index d7a8f9f5896fc2617a6b69240905c5bc81d99580..f560dd8cdb90dd4f9ff20c3a401cb07f21b0ae2b 100644 (file)
@@ -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;