Skip to contentSkip to conversation

ASoC: imx-audio-rpmsg: use module_rpmsg_driver to simplify the code

PATCH In review Yang Yingliang 2 participants 2 messages Jun 2, 2021 – Jun 3, 2021

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ASoC: imx-audio-rpmsg: use module_rpmsg_driver to simplify the code

module_rpmsg_driver() makes the code simpler by eliminating boilerplate code.

---
 sound/soc/fsl/imx-audio-rpmsg.c | 12 +-----------
 1 file changed, 1 insertion(+), 11 deletions(-)
sound/soc/fsl/imx-audio-rpmsg.c +1 -11
index 50099bcaa9cd..905c3a071300 100644
@@ -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 <[email protected]>");
Signature · 1 line
2.25.1
maintainer
#1 lore raw
Quoted 2 lines · Yang Yingliang

module_rpmsg_driver() makes the code simpler by eliminating boilerplate code.

Applied to

https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next

Thanks!

[1/1] ASoC: imx-audio-rpmsg: use module_rpmsg_driver to simplify the code

      commit: b82d0759a3b1e23d4247523c89bdfb27fffb6089

All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying to this mail.

Thanks,
Mark