diff options
author | Christoph Jaeger <christophjaeger@linux.com> | 2014-04-09 09:42:32 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2014-04-09 10:02:14 +0200 |
commit | 34f980630f6c135b6735f9fb16079aeb4c21fc18 (patch) | |
tree | ccf2fbcea93b9dc92c95c3b1b14cb748bbf7dbdb | |
parent | 7b0a48f3402a43bd8bb85bfda4f72e0a34634d74 (diff) | |
download | linux-stable-34f980630f6c135b6735f9fb16079aeb4c21fc18.tar.gz linux-stable-34f980630f6c135b6735f9fb16079aeb4c21fc18.tar.bz2 linux-stable-34f980630f6c135b6735f9fb16079aeb4c21fc18.zip |
ALSA: au1x00: use module_platform_driver()
Eliminate boilerplate code by using module_platform_driver().
Signed-off-by: Christoph Jaeger <christophjaeger@linux.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r-- | sound/mips/au1x00.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/sound/mips/au1x00.c b/sound/mips/au1x00.c index a7cc49e96068..d10ef7675268 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); |