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>
This commit is contained in:
Christoph Jaeger 2014-04-09 09:42:32 +02:00 committed by Takashi Iwai
parent 7b0a48f340
commit 34f980630f
1 changed files with 1 additions and 12 deletions

View File

@ -725,15 +725,4 @@ struct platform_driver au1000_ac97c_driver = {
.remove = au1000_ac97_remove, .remove = au1000_ac97_remove,
}; };
static int __init au1000_ac97_load(void) module_platform_driver(au1000_ac97c_driver);
{
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);