Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1ee26af0 authored by srinidhi kasagar's avatar srinidhi kasagar Committed by Lee Jones
Browse files

abx500-chargalg: Use module_platform_driver() rather



deprecate some boilerplate code by using module_platform_driver
helper macro. No functional changes.

Signed-off-by: default avatarsrinidhi kasagar <srinidhi.kasagar@stericsson.com>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent f70dfdec
Loading
Loading
Loading
Loading
+1 −12
Original line number Diff line number Diff line
@@ -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");