From: Joachim Foerster Date: Mon, 17 Mar 2008 07:40:12 +0000 (+0100) Subject: [ALSA] [ML403-AC97CR] Remove duplicate snd_card_set_dev() X-Git-Tag: firefly_0821_release~21564^2~124 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=5949d2443d96f054d9a32d31edddb0be836968c6;p=firefly-linux-kernel-4.4.55.git [ALSA] [ML403-AC97CR] Remove duplicate snd_card_set_dev() 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 Signed-off-by: Takashi Iwai --- diff --git a/sound/drivers/ml403-ac97cr.c b/sound/drivers/ml403-ac97cr.c index 05a871aa7b81..b654007331de 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; }