* [PATCH 2.6.29] ASoC: fix registration of the SOC card in the Freescale MPC8610 drivers
@ 2009-01-19 23:14 Timur Tabi
2009-01-20 20:32 ` Mark Brown
0 siblings, 1 reply; 2+ messages in thread
From: Timur Tabi @ 2009-01-19 23:14 UTC (permalink / raw)
To: alsa-devel, broonie
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>
---
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 HPCD";
+ machine_data->machine.num_links = 1;
+ machine_data->machine.dai_link = &machine_data->dai;
/* Allocate a new audio platform device structure */
sound_device = platform_device_alloc("soc-audio", -1);
@@ -465,7 +459,7 @@ static int mpc8610_hpcd_probe(struct of_device *ofdev,
goto error;
}
- machine_data->sound_devdata.card = &mpc8610_hpcd_machine;
+ machine_data->sound_devdata.card = &machine_data->machine;
machine_data->sound_devdata.codec_dev = &soc_codec_device_cs4270;
machine_data->machine.platform = &fsl_soc_platform;
--
1.5.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 2.6.29] ASoC: fix registration of the SOC card in the Freescale MPC8610 drivers
2009-01-19 23:14 [PATCH 2.6.29] ASoC: fix registration of the SOC card in the Freescale MPC8610 drivers Timur Tabi
@ 2009-01-20 20:32 ` Mark Brown
0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2009-01-20 20:32 UTC (permalink / raw)
To: Timur Tabi; +Cc: alsa-devel
On Mon, Jan 19, 2009 at 05:14:24PM -0600, Timur Tabi wrote:
> 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>
Applied, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-01-20 20:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-19 23:14 [PATCH 2.6.29] ASoC: fix registration of the SOC card in the Freescale MPC8610 drivers Timur Tabi
2009-01-20 20:32 ` Mark Brown
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.