[ALSA] drivers - Add missing snd_card_set_dev()
authorTakashi Iwai <tiwai@suse.de>
Mon, 26 Nov 2007 07:58:48 +0000 (08:58 +0100)
committerJaroslav Kysela <perex@perex.cz>
Thu, 31 Jan 2008 16:29:29 +0000 (17:29 +0100)
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>
sound/drivers/ml403-ac97cr.c
sound/drivers/mts64.c
sound/drivers/portman2x4.c

index c76a24e337f9a08164c1dffd6d7a6bba87fa9b40..443104d23159729276f87549c7dac30e101f2050 100644 (file)
@@ -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);
index 68070cccc6becce90a9ffd336eebdcc31b1369da..e12ba3d527315e59724a82c015e443e807340d79 100644 (file)
@@ -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");
index 1b832870cc84aabdfc19669b7d23378ce4a22c8f..7e7c668eacdd06f6d7d1fd019c1bcc6ee7a15df0 100644 (file)
@@ -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");