pinctrl: samsung: Parse pin groups before calling pinctrl_register()
authorTomasz Figa <t.figa@samsung.com>
Tue, 20 Aug 2013 16:16:21 +0000 (18:16 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 23 Aug 2013 06:56:31 +0000 (08:56 +0200)
commit529301c19cbc315929e1b39ee71859061910b652
treec806d108e0f0c4331e06d80906a09045efe98d5e
parent736658c5ebc93743687c6f627c9317b97d26c5be
pinctrl: samsung: Parse pin groups before calling pinctrl_register()

Calling pinctrl_register() means that the driver is fully initialized
and might accept pinmux/pinconf requests, so pin groups must be parsed
before.

This patch fixes this problem by moving device tree parsing before call
to pinctrl_register(). In addition, this fixes support for hogs on
pin controllers handled by pinctrl-samsung driver.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-samsung.c