Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 34f98063 authored by Christoph Jaeger's avatar Christoph Jaeger Committed by Takashi Iwai
Browse files

ALSA: au1x00: use module_platform_driver()



Eliminate boilerplate code by using module_platform_driver().

Signed-off-by: default avatarChristoph Jaeger <christophjaeger@linux.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 7b0a48f3
Loading
Loading
Loading
Loading
+1 −12
Original line number Diff line number Diff line
@@ -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);