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>
This commit is contained in:
parent
f70dfdec99
commit
1ee26af028
1 changed files with 1 additions and 12 deletions
|
@ -2083,18 +2083,7 @@ static struct platform_driver abx500_chargalg_driver = {
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
static int __init abx500_chargalg_init(void)
|
module_platform_driver(abx500_chargalg_driver);
|
||||||
{
|
|
||||||
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_LICENSE("GPL v2");
|
MODULE_LICENSE("GPL v2");
|
||||||
MODULE_AUTHOR("Johan Palsson, Karl Komierowski");
|
MODULE_AUTHOR("Johan Palsson, Karl Komierowski");
|
||||||
|
|
Loading…
Add table
Reference in a new issue