diff options
author | Shawn Guo <shawn.guo@linaro.org> | 2012-03-16 04:56:41 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-04-01 06:28:27 -0400 |
commit | 8f549d7e7795e5e07ff871a79708bf2e387104dd (patch) | |
tree | 93de6a8ffba13bf6613c4a08875b3cbed97d1697 /sound/soc/fsl/mpc8610_hpcd.c | |
parent | 60aae8da298e3ac0af07c8cdb6a98e47e8deab35 (diff) |
ASoC: fsl: remove helper fsl_asoc_get_codec_dev_name
The ASoC core now can support matching codec with device node besides
name, so we can save helper function fsl_asoc_get_codec_dev_name.
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Acked-by: Sascha Hauer <s.hauer@pengutronix.de>
Acked-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/fsl/mpc8610_hpcd.c')
-rw-r--r-- | sound/soc/fsl/mpc8610_hpcd.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/sound/soc/fsl/mpc8610_hpcd.c b/sound/soc/fsl/mpc8610_hpcd.c index 41951820b50e..8fdc430a4f68 100644 --- a/sound/soc/fsl/mpc8610_hpcd.c +++ b/sound/soc/fsl/mpc8610_hpcd.c | |||
@@ -41,7 +41,6 @@ struct mpc8610_hpcd_data { | |||
41 | unsigned int dma_id[2]; /* 0 = DMA1, 1 = DMA2, etc */ | 41 | unsigned int dma_id[2]; /* 0 = DMA1, 1 = DMA2, etc */ |
42 | unsigned int dma_channel_id[2]; /* 0 = ch 0, 1 = ch 1, etc*/ | 42 | unsigned int dma_channel_id[2]; /* 0 = ch 0, 1 = ch 1, etc*/ |
43 | char codec_dai_name[DAI_NAME_SIZE]; | 43 | char codec_dai_name[DAI_NAME_SIZE]; |
44 | char codec_name[DAI_NAME_SIZE]; | ||
45 | char platform_name[2][DAI_NAME_SIZE]; /* One for each DMA channel */ | 44 | char platform_name[2][DAI_NAME_SIZE]; /* One for each DMA channel */ |
46 | }; | 45 | }; |
47 | 46 | ||
@@ -215,16 +214,8 @@ static int mpc8610_hpcd_probe(struct platform_device *pdev) | |||
215 | machine_data->dai[0].cpu_dai_name = dev_name(&ssi_pdev->dev); | 214 | machine_data->dai[0].cpu_dai_name = dev_name(&ssi_pdev->dev); |
216 | machine_data->dai[0].ops = &mpc8610_hpcd_ops; | 215 | machine_data->dai[0].ops = &mpc8610_hpcd_ops; |
217 | 216 | ||
218 | /* Determine the codec name, it will be used as the codec DAI name */ | 217 | /* ASoC core can match codec with device node */ |
219 | ret = fsl_asoc_get_codec_dev_name(codec_np, machine_data->codec_name, | 218 | machine_data->dai[0].codec_of_node = codec_np; |
220 | DAI_NAME_SIZE); | ||
221 | if (ret) { | ||
222 | dev_err(&pdev->dev, "invalid codec node %s\n", | ||
223 | codec_np->full_name); | ||
224 | ret = -EINVAL; | ||
225 | goto error; | ||
226 | } | ||
227 | machine_data->dai[0].codec_name = machine_data->codec_name; | ||
228 | 219 | ||
229 | /* The DAI name from the codec (snd_soc_dai_driver.name) */ | 220 | /* The DAI name from the codec (snd_soc_dai_driver.name) */ |
230 | machine_data->dai[0].codec_dai_name = "cs4270-hifi"; | 221 | machine_data->dai[0].codec_dai_name = "cs4270-hifi"; |