Commit 4420dc20 authored by Jingoo Han's avatar Jingoo Han Committed by Anton Vorontsov

twl4030_charger: Use module_platform_driver_probe()

This patch uses module_platform_driver_probe() macro which makes the code
smaller and simpler.
Signed-off-by: default avatarJingoo Han <jg1.han@samsung.com>
Signed-off-by: default avatarAnton Vorontsov <anton@enomsg.org>
parent 9c1d1af0
...@@ -636,17 +636,7 @@ static struct platform_driver twl4030_bci_driver = { ...@@ -636,17 +636,7 @@ static struct platform_driver twl4030_bci_driver = {
.remove = __exit_p(twl4030_bci_remove), .remove = __exit_p(twl4030_bci_remove),
}; };
static int __init twl4030_bci_init(void) module_platform_driver_probe(twl4030_bci_driver, twl4030_bci_probe);
{
return platform_driver_probe(&twl4030_bci_driver, twl4030_bci_probe);
}
module_init(twl4030_bci_init);
static void __exit twl4030_bci_exit(void)
{
platform_driver_unregister(&twl4030_bci_driver);
}
module_exit(twl4030_bci_exit);
MODULE_AUTHOR("Gražvydas Ignotas"); MODULE_AUTHOR("Gražvydas Ignotas");
MODULE_DESCRIPTION("TWL4030 Battery Charger Interface driver"); MODULE_DESCRIPTION("TWL4030 Battery Charger Interface driver");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment