mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-28 20:37:27 +00:00
ASoC: omap-pcm: Drop the platform driver init code
The omap-pcm no longer need to be a platform driver since all cpu_dai will bind the platform to it's own device which we can use. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com> Signed-off-by: Mark Brown <broonie@linaro.org>
This commit is contained in:
parent
b30ca4bdde
commit
5601174ff8
@ -238,31 +238,6 @@ int omap_pcm_platform_register(struct device *dev)
|
|||||||
}
|
}
|
||||||
EXPORT_SYMBOL_GPL(omap_pcm_platform_register);
|
EXPORT_SYMBOL_GPL(omap_pcm_platform_register);
|
||||||
|
|
||||||
static int omap_pcm_probe(struct platform_device *pdev)
|
|
||||||
{
|
|
||||||
return snd_soc_register_platform(&pdev->dev,
|
|
||||||
&omap_soc_platform);
|
|
||||||
}
|
|
||||||
|
|
||||||
static int omap_pcm_remove(struct platform_device *pdev)
|
|
||||||
{
|
|
||||||
snd_soc_unregister_platform(&pdev->dev);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
static struct platform_driver omap_pcm_driver = {
|
|
||||||
.driver = {
|
|
||||||
.name = "omap-pcm-audio",
|
|
||||||
.owner = THIS_MODULE,
|
|
||||||
},
|
|
||||||
|
|
||||||
.probe = omap_pcm_probe,
|
|
||||||
.remove = omap_pcm_remove,
|
|
||||||
};
|
|
||||||
|
|
||||||
module_platform_driver(omap_pcm_driver);
|
|
||||||
|
|
||||||
MODULE_AUTHOR("Jarkko Nikula <jarkko.nikula@bitmer.com>");
|
MODULE_AUTHOR("Jarkko Nikula <jarkko.nikula@bitmer.com>");
|
||||||
MODULE_DESCRIPTION("OMAP PCM DMA module");
|
MODULE_DESCRIPTION("OMAP PCM DMA module");
|
||||||
MODULE_LICENSE("GPL");
|
MODULE_LICENSE("GPL");
|
||||||
MODULE_ALIAS("platform:omap-pcm-audio");
|
|
||||||
|
Loading…
Reference in New Issue
Block a user