mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] ALSA: au1x00: use module_platform_driver()
@ 2014-04-09  7:42 Christoph Jaeger
  2014-04-09  8:03 ` Takashi Iwai
  0 siblings, 1 reply; 2+ messages in thread
From: Christoph Jaeger @ 2014-04-09  7:42 UTC (permalink / raw)
  To: perex, tiwai, mano; +Cc: alsa-devel, linux-kernel, Christoph Jaeger

Eliminate boilerplate code by using module_platform_driver().

Signed-off-by: Christoph Jaeger <christophjaeger@linux.com>
---
 sound/mips/au1x00.c | 13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)

diff --git a/sound/mips/au1x00.c b/sound/mips/au1x00.c
index a7cc49e..d10ef76 100644
--- a/sound/mips/au1x00.c
+++ b/sound/mips/au1x00.c
@@ -725,15 +725,4 @@ struct platform_driver au1000_ac97c_driver = {
 	.remove		= au1000_ac97_remove,
 };
 
-static int __init au1000_ac97_load(void)
-{
-	return platform_driver_register(&au1000_ac97c_driver);
-}
-
-static void __exit au1000_ac97_unload(void)
-{
-	platform_driver_unregister(&au1000_ac97c_driver);
-}
-
-module_init(au1000_ac97_load);
-module_exit(au1000_ac97_unload);
+module_platform_driver(au1000_ac97c_driver);
-- 
1.9.0


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

* Re: [PATCH] ALSA: au1x00: use module_platform_driver()
  2014-04-09  7:42 [PATCH] ALSA: au1x00: use module_platform_driver() Christoph Jaeger
@ 2014-04-09  8:03 ` Takashi Iwai
  0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2014-04-09  8:03 UTC (permalink / raw)
  To: Christoph Jaeger; +Cc: perex, alsa-devel, linux-kernel

At Wed,  9 Apr 2014 09:42:32 +0200,
Christoph Jaeger wrote:
> 
> Eliminate boilerplate code by using module_platform_driver().
> 
> Signed-off-by: Christoph Jaeger <christophjaeger@linux.com>

Thanks, applied.


Takashi

> ---
>  sound/mips/au1x00.c | 13 +------------
>  1 file changed, 1 insertion(+), 12 deletions(-)
> 
> diff --git a/sound/mips/au1x00.c b/sound/mips/au1x00.c
> index a7cc49e..d10ef76 100644
> --- a/sound/mips/au1x00.c
> +++ b/sound/mips/au1x00.c
> @@ -725,15 +725,4 @@ struct platform_driver au1000_ac97c_driver = {
>  	.remove		= au1000_ac97_remove,
>  };
>  
> -static int __init au1000_ac97_load(void)
> -{
> -	return platform_driver_register(&au1000_ac97c_driver);
> -}
> -
> -static void __exit au1000_ac97_unload(void)
> -{
> -	platform_driver_unregister(&au1000_ac97c_driver);
> -}
> -
> -module_init(au1000_ac97_load);
> -module_exit(au1000_ac97_unload);
> +module_platform_driver(au1000_ac97c_driver);
> -- 
> 1.9.0
> 

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

end of thread, other threads:[~2014-04-09  8:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-09  7:42 [PATCH] ALSA: au1x00: use module_platform_driver() Christoph Jaeger
2014-04-09  8:03 ` Takashi Iwai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®