mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-04-03 08:22:10 +00:00
ARM: S3C24XX: Use module_platform_driver macro in mach-osiris-dvs.c
module_platform_driver simplifies the code by eliminating module_init and module_exit calls. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
This commit is contained in:
parent
1fffc8b20c
commit
ef97fa65ef
@ -175,18 +175,7 @@ static struct platform_driver osiris_dvs_driver = {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
static int __init osiris_dvs_init(void)
|
module_platform_driver(osiris_dvs_driver);
|
||||||
{
|
|
||||||
return platform_driver_register(&osiris_dvs_driver);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void __exit osiris_dvs_exit(void)
|
|
||||||
{
|
|
||||||
platform_driver_unregister(&osiris_dvs_driver);
|
|
||||||
}
|
|
||||||
|
|
||||||
module_init(osiris_dvs_init);
|
|
||||||
module_exit(osiris_dvs_exit);
|
|
||||||
|
|
||||||
MODULE_DESCRIPTION("Simtec OSIRIS DVS support");
|
MODULE_DESCRIPTION("Simtec OSIRIS DVS support");
|
||||||
MODULE_AUTHOR("Ben Dooks <ben@simtec.co.uk>");
|
MODULE_AUTHOR("Ben Dooks <ben@simtec.co.uk>");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user