ASoC: fix registration of the SoC card in the Freescale MPC8610 drivers

Previous thread: sound: virtuoso: document HDAV1.3 driver status by Linux Kernel Mailing List on Monday, January 26, 2009 - 11:59 am. (1 message)

Next thread: ALSA: hda: 83xxx port 0xe DAC selection by Linux Kernel Mailing List on Monday, January 26, 2009 - 11:59 am. (1 message)
From: Linux Kernel Mailing List
Date: Monday, January 26, 2009 - 11:59 am

Gitweb:     http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=8a9dee...
Commit:     8a9dee59a345f96757dd45699de1c4182d8bf9a9
Parent:     591046cfc5f1b452db0a4557850ad7f394e38231
Author:     Timur Tabi <timur@freescale.com>
AuthorDate: Mon Jan 19 17:14:24 2009 -0600
Committer:  Mark Brown <broonie@opensource.wolfsonmicro.com>
CommitDate: Tue Jan 20 20:29:39 2009 +0000

    ASoC: fix registration of the SoC card in the Freescale MPC8610 drivers
    
    The Freescale MPC8610 driver was defining two SOC card (snd_soc_card)
    structures, partially initializing each one, but registering only one of
    them with ASoC.
    
    Signed-off-by: Timur Tabi <timur@freescale.com>
    Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
---
 sound/soc/fsl/mpc8610_hpcd.c |   18 ++++++------------
 1 files changed, 6 insertions(+), 12 deletions(-)

diff --git a/sound/soc/fsl/mpc8610_hpcd.c b/sound/soc/fsl/mpc8610_hpcd.c
index bcec3f6..acf39a6 100644
--- a/sound/soc/fsl/mpc8610_hpcd.c
+++ b/sound/soc/fsl/mpc8610_hpcd.c
@@ -183,16 +183,6 @@ static struct snd_soc_ops mpc8610_hpcd_ops = {
 };
 
 /**
- * mpc8610_hpcd_machine: ASoC machine data
- */
-static struct snd_soc_card mpc8610_hpcd_machine = {
-	.probe = mpc8610_hpcd_machine_probe,
-	.remove = mpc8610_hpcd_machine_remove,
-	.name = "MPC8610 HPCD",
-	.num_links = 1,
-};
-
-/**
  * mpc8610_hpcd_probe: OF probe function for the fabric driver
  *
  * This function gets called when an SSI node is found in the device tree.
@@ -455,7 +445,11 @@ static int mpc8610_hpcd_probe(struct of_device *ofdev,
 	machine_data->dai.codec_dai = &cs4270_dai; /* The codec_dai we want */
 	machine_data->dai.ops = &mpc8610_hpcd_ops;
 
-	mpc8610_hpcd_machine.dai_link = &machine_data->dai;
+	machine_data->machine.probe = mpc8610_hpcd_machine_probe;
+	machine_data->machine.remove = mpc8610_hpcd_machine_remove;
+	machine_data->machine.name = "MPC8610 ...
Previous thread: sound: virtuoso: document HDAV1.3 driver status by Linux Kernel Mailing List on Monday, January 26, 2009 - 11:59 am. (1 message)

Next thread: ALSA: hda: 83xxx port 0xe DAC selection by Linux Kernel Mailing List on Monday, January 26, 2009 - 11:59 am. (1 message)