ASoC: switch over to use snd_soc_register_component() on sh4 ssi
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
This commit is contained in:
parent
1dfec3954e
commit
cd9003a200
1 changed files with 7 additions and 3 deletions
|
@ -379,15 +379,19 @@ static struct snd_soc_dai_driver sh4_ssi_dai[] = {
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static const struct snd_soc_component_driver sh4_ssi_component = {
|
||||||
|
.name = "sh4-ssi",
|
||||||
|
};
|
||||||
|
|
||||||
static int sh4_soc_dai_probe(struct platform_device *pdev)
|
static int sh4_soc_dai_probe(struct platform_device *pdev)
|
||||||
{
|
{
|
||||||
return snd_soc_register_dais(&pdev->dev, sh4_ssi_dai,
|
return snd_soc_register_component(&pdev->dev, &sh4_ssi_component,
|
||||||
ARRAY_SIZE(sh4_ssi_dai));
|
sh4_ssi_dai, ARRAY_SIZE(sh4_ssi_dai));
|
||||||
}
|
}
|
||||||
|
|
||||||
static int sh4_soc_dai_remove(struct platform_device *pdev)
|
static int sh4_soc_dai_remove(struct platform_device *pdev)
|
||||||
{
|
{
|
||||||
snd_soc_unregister_dais(&pdev->dev, ARRAY_SIZE(sh4_ssi_dai));
|
snd_soc_unregister_component(&pdev->dev);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue