You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
ASoC: Convert txx9 directory to module_platform_driver
Factor out some boilerplate code. Signed-off-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
This commit is contained in:
@@ -223,18 +223,7 @@ static struct platform_driver txx9aclc_ac97_driver = {
|
||||
},
|
||||
};
|
||||
|
||||
static int __init txx9aclc_ac97_init(void)
|
||||
{
|
||||
return platform_driver_register(&txx9aclc_ac97_driver);
|
||||
}
|
||||
|
||||
static void __exit txx9aclc_ac97_exit(void)
|
||||
{
|
||||
platform_driver_unregister(&txx9aclc_ac97_driver);
|
||||
}
|
||||
|
||||
module_init(txx9aclc_ac97_init);
|
||||
module_exit(txx9aclc_ac97_exit);
|
||||
module_platform_driver(txx9aclc_ac97_driver);
|
||||
|
||||
MODULE_AUTHOR("Atsushi Nemoto <anemo@mba.ocn.ne.jp>");
|
||||
MODULE_DESCRIPTION("TXx9 ACLC AC97 driver");
|
||||
|
||||
Reference in New Issue
Block a user