diff options
author | srinidhi kasagar <srinidhi.kasagar@stericsson.com> | 2012-10-11 05:08:28 -0400 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2013-03-06 23:35:53 -0500 |
commit | 1ee26af028a46cf911f844c062b3c810bac34366 (patch) | |
tree | ab6890da0524500dfbeddc7995b169e50aae42a9 /drivers/power | |
parent | f70dfdec99877fa716f71633a67d7ba3dfab1c5f (diff) |
abx500-chargalg: Use module_platform_driver() rather
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>
Diffstat (limited to 'drivers/power')
-rw-r--r-- | drivers/power/abx500_chargalg.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/power/abx500_chargalg.c b/drivers/power/abx500_chargalg.c index 55c9d2ea5dff..7e4bc011dd8f 100644 --- a/drivers/power/abx500_chargalg.c +++ b/drivers/power/abx500_chargalg.c | |||
@@ -2083,18 +2083,7 @@ static struct platform_driver abx500_chargalg_driver = { | |||
2083 | }, | 2083 | }, |
2084 | }; | 2084 | }; |
2085 | 2085 | ||
2086 | static int __init abx500_chargalg_init(void) | 2086 | module_platform_driver(abx500_chargalg_driver); |
2087 | { | ||
2088 | return platform_driver_register(&abx500_chargalg_driver); | ||
2089 | } | ||
2090 | |||
2091 | static void __exit abx500_chargalg_exit(void) | ||
2092 | { | ||
2093 | platform_driver_unregister(&abx500_chargalg_driver); | ||
2094 | } | ||
2095 | |||
2096 | module_init(abx500_chargalg_init); | ||
2097 | module_exit(abx500_chargalg_exit); | ||
2098 | 2087 | ||
2099 | MODULE_LICENSE("GPL v2"); | 2088 | MODULE_LICENSE("GPL v2"); |
2100 | MODULE_AUTHOR("Johan Palsson, Karl Komierowski"); | 2089 | MODULE_AUTHOR("Johan Palsson, Karl Komierowski"); |