Commit 7ddd1837 authored by Wei Yongjun's avatar Wei Yongjun Committed by Linus Walleij

pinctrl: tb10x: use module_platform_driver to simplify the code

module_platform_driver() makes the code simpler by eliminating
boilerplate code.
Signed-off-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 86467ff2
...@@ -869,17 +869,7 @@ static struct platform_driver tb10x_pinctrl_pdrv = { ...@@ -869,17 +869,7 @@ static struct platform_driver tb10x_pinctrl_pdrv = {
} }
}; };
static int __init tb10x_iopinctrl_init(void) module_platform_driver(tb10x_pinctrl_pdrv);
{
return platform_driver_register(&tb10x_pinctrl_pdrv);
}
static void __exit tb10x_iopinctrl_exit(void)
{
platform_driver_unregister(&tb10x_pinctrl_pdrv);
}
MODULE_AUTHOR("Christian Ruppert <christian.ruppert@abilis.com>"); MODULE_AUTHOR("Christian Ruppert <christian.ruppert@abilis.com>");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
module_init(tb10x_iopinctrl_init);
module_exit(tb10x_iopinctrl_exit);
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