ASoC: switch over to use snd_soc_register_component() on s3c24xx i2s
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
cd5e4d0b2f
commit
5642ddff27
|
@ -465,11 +465,16 @@ static struct snd_soc_dai_driver s3c24xx_i2s_dai = {
|
||||||
.ops = &s3c24xx_i2s_dai_ops,
|
.ops = &s3c24xx_i2s_dai_ops,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static const struct snd_soc_component_driver s3c24xx_i2s_component = {
|
||||||
|
.name = "s3c24xx-i2s",
|
||||||
|
};
|
||||||
|
|
||||||
static int s3c24xx_iis_dev_probe(struct platform_device *pdev)
|
static int s3c24xx_iis_dev_probe(struct platform_device *pdev)
|
||||||
{
|
{
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
|
||||||
ret = snd_soc_register_dai(&pdev->dev, &s3c24xx_i2s_dai);
|
ret = snd_soc_register_component(&pdev->dev, &s3c24xx_i2s_component,
|
||||||
|
&s3c24xx_i2s_dai, 1);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
pr_err("failed to register the dai\n");
|
pr_err("failed to register the dai\n");
|
||||||
return ret;
|
return ret;
|
||||||
|
@ -483,14 +488,14 @@ static int s3c24xx_iis_dev_probe(struct platform_device *pdev)
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
err:
|
err:
|
||||||
snd_soc_unregister_dai(&pdev->dev);
|
snd_soc_unregister_component(&pdev->dev);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int s3c24xx_iis_dev_remove(struct platform_device *pdev)
|
static int s3c24xx_iis_dev_remove(struct platform_device *pdev)
|
||||||
{
|
{
|
||||||
asoc_dma_platform_unregister(&pdev->dev);
|
asoc_dma_platform_unregister(&pdev->dev);
|
||||||
snd_soc_unregister_dai(&pdev->dev);
|
snd_soc_unregister_component(&pdev->dev);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue