Commit 425f3708 authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Mark Brown

ASoC: switch over to use snd_soc_register_component() on mmp sspa

Signed-off-by: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent bccf7d8b
...@@ -405,6 +405,10 @@ struct snd_soc_dai_driver mmp_sspa_dai = { ...@@ -405,6 +405,10 @@ struct snd_soc_dai_driver mmp_sspa_dai = {
.ops = &mmp_sspa_dai_ops, .ops = &mmp_sspa_dai_ops,
}; };
static const struct snd_soc_component_driver mmp_sspa_component = {
.name = "mmp-sspa",
};
static int asoc_mmp_sspa_probe(struct platform_device *pdev) static int asoc_mmp_sspa_probe(struct platform_device *pdev)
{ {
struct sspa_priv *priv; struct sspa_priv *priv;
...@@ -450,7 +454,8 @@ static int asoc_mmp_sspa_probe(struct platform_device *pdev) ...@@ -450,7 +454,8 @@ static int asoc_mmp_sspa_probe(struct platform_device *pdev)
priv->dai_fmt = (unsigned int) -1; priv->dai_fmt = (unsigned int) -1;
platform_set_drvdata(pdev, priv); platform_set_drvdata(pdev, priv);
return snd_soc_register_dai(&pdev->dev, &mmp_sspa_dai); return snd_soc_register_component(&pdev->dev, &mmp_sspa_component,
&mmp_sspa_dai, 1);
} }
static int asoc_mmp_sspa_remove(struct platform_device *pdev) static int asoc_mmp_sspa_remove(struct platform_device *pdev)
...@@ -460,7 +465,7 @@ static int asoc_mmp_sspa_remove(struct platform_device *pdev) ...@@ -460,7 +465,7 @@ static int asoc_mmp_sspa_remove(struct platform_device *pdev)
clk_disable(priv->audio_clk); clk_disable(priv->audio_clk);
clk_put(priv->audio_clk); clk_put(priv->audio_clk);
clk_put(priv->sysclk); clk_put(priv->sysclk);
snd_soc_unregister_dai(&pdev->dev); snd_soc_unregister_component(&pdev->dev);
return 0; return 0;
} }
......
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