Skip to contentSkip to conversation

ALSA: au1x00: use module_platform_driver()

PATCH Applied Christoph Jaeger 2 participants 2 messages Apr 9, 2014 Sound

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ALSA: au1x00: use module_platform_driver()

Eliminate boilerplate code by using module_platform_driver().

---
 sound/mips/au1x00.c | 13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)
sound/mips/au1x00.c +1 -12
index a7cc49e..d10ef76 100644
@@ -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);
Signature · 1 line
1.9.0
Applied
#1 lore raw

At Wed, 9 Apr 2014 09:42:32 +0200,

Quoted 4 lines · Christoph Jaeger

Eliminate boilerplate code by using module_platform_driver().

Thanks, applied.

Takashi

Quoted 28 lines
---
 sound/mips/au1x00.c | 13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)
sound/mips/au1x00.c +1 -12
index a7cc49e..d10ef76 100644
@@ -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);
Signature · 1 line
1.9.0