mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 11:20:49 +07:00
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:
parent
abd5ef092a
commit
703c13e447
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user