Commit fa659d83 authored by Shawn Guo's avatar Shawn Guo Committed by Mark Brown

ASoC: imx-sgtl5000: use of_node to match cpu dai

Since imx-sgtl5000 is only used on DT platform, it makes more sense to
use cpu_of_node rather than cpu_dai_name to match cpu dai.
Signed-off-by: default avatarShawn Guo <shawn.guo@linaro.org>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 2fb14880
...@@ -148,7 +148,7 @@ static int imx_sgtl5000_probe(struct platform_device *pdev) ...@@ -148,7 +148,7 @@ static int imx_sgtl5000_probe(struct platform_device *pdev)
data->dai.stream_name = "HiFi"; data->dai.stream_name = "HiFi";
data->dai.codec_dai_name = "sgtl5000"; data->dai.codec_dai_name = "sgtl5000";
data->dai.codec_of_node = codec_np; data->dai.codec_of_node = codec_np;
data->dai.cpu_dai_name = dev_name(&ssi_pdev->dev); data->dai.cpu_of_node = ssi_np;
data->dai.platform_name = "imx-pcm-audio"; data->dai.platform_name = "imx-pcm-audio";
data->dai.init = &imx_sgtl5000_dai_init; data->dai.init = &imx_sgtl5000_dai_init;
data->dai.dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF | data->dai.dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF |
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment