diff options
author | Geliang Tang <geliangtang@gmail.com> | 2016-11-18 22:12:29 +0800 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2016-11-22 10:17:28 +0100 |
commit | 4ecb65fb87b6591f90e1baef52c7f22757c30a2d (patch) | |
tree | 0aedbc19179c769a59d4cedc17ce9fa56940f2e1 /drivers/pinctrl/mediatek | |
parent | 5b209efa3fe809831e1e043657536cc3353ce5e9 (diff) | |
download | linux-4ecb65fb87b6591f90e1baef52c7f22757c30a2d.tar.gz linux-4ecb65fb87b6591f90e1baef52c7f22757c30a2d.tar.bz2 linux-4ecb65fb87b6591f90e1baef52c7f22757c30a2d.zip |
pinctrl: mediatek: use builtin_platform_driver
Use builtin_platform_driver() helper to simplify the code.
Signed-off-by: Geliang Tang <geliangtang@gmail.com>
Acked-by: Hongzhou Yang <hongzhou.yang@mediatek.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/mediatek')
-rw-r--r-- | drivers/pinctrl/mediatek/pinctrl-mt6397.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/pinctrl/mediatek/pinctrl-mt6397.c b/drivers/pinctrl/mediatek/pinctrl-mt6397.c index 6eccb85c02cd..afcede7e2222 100644 --- a/drivers/pinctrl/mediatek/pinctrl-mt6397.c +++ b/drivers/pinctrl/mediatek/pinctrl-mt6397.c @@ -64,8 +64,4 @@ static struct platform_driver mtk_pinctrl_driver = { }, }; -static int __init mtk_pinctrl_init(void) -{ - return platform_driver_register(&mtk_pinctrl_driver); -} -device_initcall(mtk_pinctrl_init); +builtin_platform_driver(mtk_pinctrl_driver); |