Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=d47ac4338301c373eca9d817ec9c6e33b069ac51
Commit:     d47ac4338301c373eca9d817ec9c6e33b069ac51
Parent:     4f1895b0b5fbbd40299d85a07a6cd1742d1d1e1a
Author:     Takashi Iwai <[EMAIL PROTECTED]>
AuthorDate: Mon Nov 26 08:58:48 2007 +0100
Committer:  Jaroslav Kysela <[EMAIL PROTECTED]>
CommitDate: Thu Jan 31 17:29:29 2008 +0100

    [ALSA] drivers - Add missing snd_card_set_dev()
    
    Added the missing call of snd_card_set_dev() in drivers/*
    
    Signed-off-by: Takashi Iwai <[EMAIL PROTECTED]>
    Signed-off-by: Jaroslav Kysela <[EMAIL PROTECTED]>
---
 sound/drivers/ml403-ac97cr.c |    2 ++
 sound/drivers/mts64.c        |    2 ++
 sound/drivers/portman2x4.c   |    2 ++
 3 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/sound/drivers/ml403-ac97cr.c b/sound/drivers/ml403-ac97cr.c
index c76a24e..443104d 100644
--- a/sound/drivers/ml403-ac97cr.c
+++ b/sound/drivers/ml403-ac97cr.c
@@ -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);
diff --git a/sound/drivers/mts64.c b/sound/drivers/mts64.c
index 68070cc..e12ba3d 100644
--- a/sound/drivers/mts64.c
+++ b/sound/drivers/mts64.c
@@ -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");
diff --git a/sound/drivers/portman2x4.c b/sound/drivers/portman2x4.c
index 1b83287..7e7c668 100644
--- a/sound/drivers/portman2x4.c
+++ b/sound/drivers/portman2x4.c
@@ -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");
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to