Message ID | 70fcc58b7e9219a9fbe3695df927041b8234dd08.1479457060.git.geliangtang@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Fri, 2016-11-18 at 22:12 +0800, Geliang Tang wrote: > Use builtin_platform_driver() helper to simplify the code. > > Signed-off-by: Geliang Tang <geliangtang@gmail.com> > --- > drivers/pinctrl/mediatek/pinctrl-mt6397.c | 6 +----- > 1 file changed, 1 insertion(+), 5 deletions(-) > > diff --git a/drivers/pinctrl/mediatek/pinctrl-mt6397.c b/drivers/pinctrl/mediatek/pinctrl-mt6397.c > index 6eccb85..afcede7 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); Acked-by: Hongzhou Yang <hongzhou.yang@mediatek.com> Thanks, Hongzhou
On Fri, Nov 18, 2016 at 3:12 PM, Geliang Tang <geliangtang@gmail.com> wrote: > Use builtin_platform_driver() helper to simplify the code. > > Signed-off-by: Geliang Tang <geliangtang@gmail.com> Patch applied with Hongzhou's ACK. Yours, Linus Walleij
diff --git a/drivers/pinctrl/mediatek/pinctrl-mt6397.c b/drivers/pinctrl/mediatek/pinctrl-mt6397.c index 6eccb85..afcede7 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);
Use builtin_platform_driver() helper to simplify the code. Signed-off-by: Geliang Tang <geliangtang@gmail.com> --- drivers/pinctrl/mediatek/pinctrl-mt6397.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-)