pinctrl: mt7622: fix that pinctrl_claim_hogs cannot work
authorSean Wang <sean.wang@mediatek.com>
Fri, 22 Jun 2018 03:49:06 +0000 (11:49 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Sat, 14 Jul 2018 10:47:04 +0000 (12:47 +0200)
commitae6efcae79dd2888243634b69fce51208b650192
treea91a7a8db157806bc811dc84b9aa1a9f04b98e75
parent8875059d2165f22236e87ed10188b0e18f116b93
pinctrl: mt7622: fix that pinctrl_claim_hogs cannot work

To allow claiming hogs by pinctrl, we cannot enable pinctrl until all
groups and functions are being added done. Also, it's necessary that
the corresponding gpiochip is being added when the pinctrl device is
enabled.

Cc: stable@vger.kernel.org
Fixes: d6ed93551320 ("pinctrl: mediatek: add pinctrl driver for MT7622 SoC")
Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/mediatek/pinctrl-mt7622.c