diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2013-10-23 04:46:00 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2013-10-23 04:46:00 -0400 |
commit | 7ddd183738fc39cbe3fbfa1954082d4189f14a5c (patch) | |
tree | b906af246574891866f3f90940dba086c0b22d99 /drivers/pinctrl | |
parent | 86467ff2ddca94c0d8d10b92b5916e68c0cad8a9 (diff) |
pinctrl: tb10x: use module_platform_driver to simplify the code
module_platform_driver() makes the code simpler by eliminating
boilerplate code.
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl')
-rw-r--r-- | drivers/pinctrl/pinctrl-tb10x.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/pinctrl/pinctrl-tb10x.c b/drivers/pinctrl/pinctrl-tb10x.c index 9f7fa9b6ea80..c5e0f6973a3b 100644 --- a/drivers/pinctrl/pinctrl-tb10x.c +++ b/drivers/pinctrl/pinctrl-tb10x.c | |||
@@ -869,17 +869,7 @@ static struct platform_driver tb10x_pinctrl_pdrv = { | |||
869 | } | 869 | } |
870 | }; | 870 | }; |
871 | 871 | ||
872 | static int __init tb10x_iopinctrl_init(void) | 872 | module_platform_driver(tb10x_pinctrl_pdrv); |
873 | { | ||
874 | return platform_driver_register(&tb10x_pinctrl_pdrv); | ||
875 | } | ||
876 | |||
877 | static void __exit tb10x_iopinctrl_exit(void) | ||
878 | { | ||
879 | platform_driver_unregister(&tb10x_pinctrl_pdrv); | ||
880 | } | ||
881 | 873 | ||
882 | MODULE_AUTHOR("Christian Ruppert <christian.ruppert@abilis.com>"); | 874 | MODULE_AUTHOR("Christian Ruppert <christian.ruppert@abilis.com>"); |
883 | MODULE_LICENSE("GPL"); | 875 | MODULE_LICENSE("GPL"); |
884 | module_init(tb10x_iopinctrl_init); | ||
885 | module_exit(tb10x_iopinctrl_exit); | ||