Skip to content

Commit

Permalink
abx500-chargalg: Use module_platform_driver() rather
Browse files Browse the repository at this point in the history
deprecate some boilerplate code by using module_platform_driver
helper macro. No functional changes.

Signed-off-by: srinidhi kasagar <srinidhi.kasagar@stericsson.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
  • Loading branch information
srinidhi kasagar authored and Lee Jones committed Mar 7, 2013
1 parent f70dfde commit 1ee26af
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions drivers/power/abx500_chargalg.c
Original file line number Diff line number Diff line change
Expand Up @@ -2083,18 +2083,7 @@ static struct platform_driver abx500_chargalg_driver = {
},
};

static int __init abx500_chargalg_init(void)
{
return platform_driver_register(&abx500_chargalg_driver);
}

static void __exit abx500_chargalg_exit(void)
{
platform_driver_unregister(&abx500_chargalg_driver);
}

module_init(abx500_chargalg_init);
module_exit(abx500_chargalg_exit);
module_platform_driver(abx500_chargalg_driver);

MODULE_LICENSE("GPL v2");
MODULE_AUTHOR("Johan Palsson, Karl Komierowski");
Expand Down

0 comments on commit 1ee26af

Please sign in to comment.