linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ASoC: mediatek: mt6359: convert to use module_platform_driver
@ 2021-05-31  5:12 Nobuhiro Iwamatsu
  2021-08-03 23:22 ` Mark Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Nobuhiro Iwamatsu @ 2021-05-31  5:12 UTC (permalink / raw)
  To: Liam Girdwood, Mark Brown, Takashi Iwai, Argus Lin
  Cc: Jaroslav Kysela, Matthias Brugger, Colin Ian King, alsa-devel,
	linux-arm-kernel, linux-mediatek, linux-kernel,
	Nobuhiro Iwamatsu

Simplify the code by using module_platform_driver macro for
mt6359-accdet.

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro1.iwamatsu@toshiba.co.jp>
---
 sound/soc/codecs/mt6359-accdet.c | 17 +----------------
 1 file changed, 1 insertion(+), 16 deletions(-)

diff --git a/sound/soc/codecs/mt6359-accdet.c b/sound/soc/codecs/mt6359-accdet.c
index 4222aed013f106..b2354a613b1587 100644
--- a/sound/soc/codecs/mt6359-accdet.c
+++ b/sound/soc/codecs/mt6359-accdet.c
@@ -1057,22 +1057,7 @@ static struct platform_driver mt6359_accdet_driver = {
 	.probe = mt6359_accdet_probe,
 };
 
-static int __init mt6359_accdet_driver_init(void)
-{
-	int ret = 0;
-
-	ret = platform_driver_register(&mt6359_accdet_driver);
-	if (ret)
-		return -ENODEV;
-	return 0;
-}
-
-static void __exit mt6359_accdet_driver_exit(void)
-{
-	platform_driver_unregister(&mt6359_accdet_driver);
-}
-module_init(mt6359_accdet_driver_init);
-module_exit(mt6359_accdet_driver_exit);
+module_platform_driver(mt6359_accdet_driver)
 
 /* Module information */
 MODULE_DESCRIPTION("MT6359 ALSA SoC codec jack driver");
-- 
2.30.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] ASoC: mediatek: mt6359: convert to use module_platform_driver
  2021-05-31  5:12 [PATCH] ASoC: mediatek: mt6359: convert to use module_platform_driver Nobuhiro Iwamatsu
@ 2021-08-03 23:22 ` Mark Brown
  0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2021-08-03 23:22 UTC (permalink / raw)
  To: Argus Lin, Liam Girdwood, Takashi Iwai, Nobuhiro Iwamatsu
  Cc: Mark Brown, Jaroslav Kysela, linux-arm-kernel, linux-mediatek,
	linux-kernel, Matthias Brugger, Colin Ian King, alsa-devel

On Mon, 31 May 2021 14:12:03 +0900, Nobuhiro Iwamatsu wrote:
> Simplify the code by using module_platform_driver macro for
> mt6359-accdet.
> 
> 
> 
> 

Applied to

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

Thanks!

[1/1] ASoC: mediatek: mt6359: convert to use module_platform_driver
      commit: edcade2e5e942453f001bd7a0d31f55059cec34f

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-08-03 23:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-31  5:12 [PATCH] ASoC: mediatek: mt6359: convert to use module_platform_driver Nobuhiro Iwamatsu
2021-08-03 23:22 ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).