* [PATCH] [ML403-AC97CR] Remove duplicate snd_card_set_dev().
@ 2008-03-15 9:43 Joachim Foerster
2008-03-17 7:42 ` Takashi Iwai
0 siblings, 1 reply; 2+ messages in thread
From: Joachim Foerster @ 2008-03-15 9:43 UTC (permalink / raw)
To: Takashi Iwai; +Cc: alsa-devel
Hi Takashi,
I noticed, that there was a change in ml403-ac97cr.c, which introduces a
second call of snd_card_set_dev() in the _probe()-function. The
"original" one is in the snd_ml403_ac97cr_create()-function.
According the other changes, I guess, we want to have it in the
_probe()-function, now (=> following patch)?
From: Joachim Foerster <JOFT@gmx.de>
We want to have snd_card_set_dev() in _probe(), but not a second one in
snd_ml403_ac97cr_create().
Signed-off-by: Joachim Foerster <JOFT@gmx.de>
---
sound/drivers/ml403-ac97cr.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/sound/drivers/ml403-ac97cr.c b/sound/drivers/ml403-ac97cr.c
index 05a871a..b654007 100644
--- a/sound/drivers/ml403-ac97cr.c
+++ b/sound/drivers/ml403-ac97cr.c
@@ -1191,8 +1191,6 @@ snd_ml403_ac97cr_create(struct snd_card *card, struct platform_device *pfdev,
return err;
}
- snd_card_set_dev(card, &pfdev->dev);
-
*rml403_ac97cr = ml403_ac97cr;
return 0;
}
--
1.5.4.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] [ML403-AC97CR] Remove duplicate snd_card_set_dev().
2008-03-15 9:43 [PATCH] [ML403-AC97CR] Remove duplicate snd_card_set_dev() Joachim Foerster
@ 2008-03-17 7:42 ` Takashi Iwai
0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2008-03-17 7:42 UTC (permalink / raw)
To: Joachim Foerster; +Cc: alsa-devel
At Sat, 15 Mar 2008 10:43:09 +0100,
Joachim Foerster wrote:
>
> Hi Takashi,
>
> I noticed, that there was a change in ml403-ac97cr.c, which introduces a
> second call of snd_card_set_dev() in the _probe()-function. The
> "original" one is in the snd_ml403_ac97cr_create()-function.
>
> According the other changes, I guess, we want to have it in the
> _probe()-function, now (=> following patch)?
It's no big matter whether it's set. The only requirement is that
it must be called before registering the device, typically via
snd_card_register().
> From: Joachim Foerster <JOFT@gmx.de>
>
> We want to have snd_card_set_dev() in _probe(), but not a second one in
> snd_ml403_ac97cr_create().
>
> Signed-off-by: Joachim Foerster <JOFT@gmx.de>
Applied to ALSA tree. Thanks.
Takashi
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-03-17 7:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-15 9:43 [PATCH] [ML403-AC97CR] Remove duplicate snd_card_set_dev() Joachim Foerster
2008-03-17 7:42 ` Takashi Iwai
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox