Skip to content

Commit

Permalink
ARM: S3C24XX: Use module_platform_driver macro in mach-osiris-dvs.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sachin Kamat authored and Kukjin Kim committed Sep 6, 2012
1 parent 1fffc8b commit ef97fa6
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions arch/arm/mach-s3c24xx/mach-osiris-dvs.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,18 +175,7 @@ static struct platform_driver osiris_dvs_driver = {
},
};

static int __init osiris_dvs_init(void)
{
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_platform_driver(osiris_dvs_driver);

MODULE_DESCRIPTION("Simtec OSIRIS DVS support");
MODULE_AUTHOR("Ben Dooks <ben@simtec.co.uk>");
Expand Down

0 comments on commit ef97fa6

Please sign in to comment.