mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-11 15:49:56 +00:00
ASoC: imx-audio-rpmsg: use module_rpmsg_driver to simplify the code
module_rpmsg_driver() makes the code simpler by eliminating boilerplate code. Signed-off-by: Yang Yingliang <yangyingliang@huawei.com> Link: https://lore.kernel.org/r/20210602082610.3828408-1-yangyingliang@huawei.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
6522a8486c
commit
b82d0759a3
@ -122,17 +122,7 @@ static struct rpmsg_driver imx_audio_rpmsg_driver = {
|
||||
.remove = imx_audio_rpmsg_remove,
|
||||
};
|
||||
|
||||
static int __init imx_audio_rpmsg_init(void)
|
||||
{
|
||||
return register_rpmsg_driver(&imx_audio_rpmsg_driver);
|
||||
}
|
||||
|
||||
static void __exit imx_audio_rpmsg_exit(void)
|
||||
{
|
||||
unregister_rpmsg_driver(&imx_audio_rpmsg_driver);
|
||||
}
|
||||
module_init(imx_audio_rpmsg_init);
|
||||
module_exit(imx_audio_rpmsg_exit);
|
||||
module_rpmsg_driver(imx_audio_rpmsg_driver);
|
||||
|
||||
MODULE_DESCRIPTION("Freescale SoC Audio RPMSG interface");
|
||||
MODULE_AUTHOR("Shengjiu Wang <shengjiu.wang@nxp.com>");
|
||||
|
Loading…
x
Reference in New Issue
Block a user