ASoC: omap-pcm: replace platform to component

Now platform can be replaced to component, let's do it.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Kuninori Morimoto 2018-01-29 02:50:19 +00:00 committed by Mark Brown
parent abd5ef092a
commit 703c13e447
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0

View File

@ -243,7 +243,7 @@ static int omap_pcm_new(struct snd_soc_pcm_runtime *rtd)
return ret;
}
static const struct snd_soc_platform_driver omap_soc_platform = {
static const struct snd_soc_component_driver omap_soc_component = {
.ops = &omap_pcm_ops,
.pcm_new = omap_pcm_new,
.pcm_free = omap_pcm_free_dma_buffers,
@ -252,7 +252,8 @@ static const struct snd_soc_platform_driver omap_soc_platform = {
int omap_pcm_platform_register(struct device *dev)
{
omap_pcm_limit_supported_formats();
return devm_snd_soc_register_platform(dev, &omap_soc_platform);
return devm_snd_soc_register_component(dev, &omap_soc_component,
NULL, 0);
}
EXPORT_SYMBOL_GPL(omap_pcm_platform_register);