pinctrl: mediatek: convert to arch_initcall
authorDaniel Kurtz <djkurtz@chromium.org>
Tue, 22 Dec 2015 13:46:37 +0000 (21:46 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 22 Dec 2015 15:21:00 +0000 (16:21 +0100)
commit6c741c74092c61465af206672ba567940a23d709
treeff9f0714b5637035e79521bf783295e378dd86dd
parent53653c6b91750debba6dc4503003c851257fd340
pinctrl: mediatek: convert to arch_initcall

Move pinctrl initialization earlier in boot so that real devices can find
their pctldev without probe deferring.

Note: We don't change mt6397 probe order in this patch, since MT6397 is mfd
PMIC, which depends on pwrap on main AP to work. Since pmic-wrap itself
is module_platform_driver, we keep it as module_init.  A later patch
will convert both pmic-wrap, and all functions of the MT6397 mfd to
arch_initcall.

Signed-off-by: Daniel Kurtz <djkurtz@chromium.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/mediatek/pinctrl-mt8127.c
drivers/pinctrl/mediatek/pinctrl-mt8135.c
drivers/pinctrl/mediatek/pinctrl-mt8173.c