aboutsummaryrefslogtreecommitdiffstats
path: root/sound/drivers
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2007-11-26 02:58:48 -0500
committerJaroslav Kysela <perex@perex.cz>2008-01-31 11:29:29 -0500
commitd47ac4338301c373eca9d817ec9c6e33b069ac51 (patch)
treeb1b17f6b02ccc49908cdca081b0c4259771172be /sound/drivers
parent4f1895b0b5fbbd40299d85a07a6cd1742d1d1e1a (diff)
[ALSA] drivers - Add missing snd_card_set_dev()
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>
Diffstat (limited to 'sound/drivers')
-rw-r--r--sound/drivers/ml403-ac97cr.c2
-rw-r--r--sound/drivers/mts64.c2
-rw-r--r--sound/drivers/portman2x4.c2
3 files changed, 6 insertions, 0 deletions
diff --git a/sound/drivers/ml403-ac97cr.c b/sound/drivers/ml403-ac97cr.c
index c76a24e337f9..443104d23159 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)
1312 (unsigned long)ml403_ac97cr->port, ml403_ac97cr->irq, 1312 (unsigned long)ml403_ac97cr->port, ml403_ac97cr->irq,
1313 ml403_ac97cr->capture_irq, dev + 1); 1313 ml403_ac97cr->capture_irq, dev + 1);
1314 1314
1315 snd_card_set_dev(card, &pfdev->dev);
1316
1315 err = snd_card_register(card); 1317 err = snd_card_register(card);
1316 if (err < 0) { 1318 if (err < 0) {
1317 snd_card_free(card); 1319 snd_card_free(card);
diff --git a/sound/drivers/mts64.c b/sound/drivers/mts64.c
index 68070cccc6be..e12ba3d52731 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)
1008 1008
1009 platform_set_drvdata(pdev, card); 1009 platform_set_drvdata(pdev, card);
1010 1010
1011 snd_card_set_dev(card, &pdev->dev);
1012
1011 /* At this point card will be usable */ 1013 /* At this point card will be usable */
1012 if ((err = snd_card_register(card)) < 0) { 1014 if ((err = snd_card_register(card)) < 0) {
1013 snd_printd("Cannot register card\n"); 1015 snd_printd("Cannot register card\n");
diff --git a/sound/drivers/portman2x4.c b/sound/drivers/portman2x4.c
index 1b832870cc84..7e7c668eacdd 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)
797 797
798 platform_set_drvdata(pdev, card); 798 platform_set_drvdata(pdev, card);
799 799
800 snd_card_set_dev(card, &pdev->dev);
801
800 /* At this point card will be usable */ 802 /* At this point card will be usable */
801 if ((err = snd_card_register(card)) < 0) { 803 if ((err = snd_card_register(card)) < 0) {
802 snd_printd("Cannot register card\n"); 804 snd_printd("Cannot register card\n");