gpio: zynq: initialize clock even without CONFIG_PM
authorHelmut Grohne <h.grohne@intenta.de>
Fri, 3 Jun 2016 12:15:32 +0000 (14:15 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 8 Jun 2016 08:36:29 +0000 (10:36 +0200)
commit0f84f29ff30bdb1bca23017b118b4ea3999cac32
tree6186d77109d9dbd5ac7b42d88f0a818c3553fef3
parentd15d6cf91695674fbabac3b1d2c8a269d9bab5c6
gpio: zynq: initialize clock even without CONFIG_PM

When the PM initialization was moved in the commit referenced below, the
code enabling the clock was removed from the probe function. On
CONFIG_PM=y kernels, this is not a problem as the pm resume hook enables
the clock, but when power management is disabled, all those pm_*
functions are noops and the clock is never enabled resulting in a
dysfunctional gpio controller.

Put the clock initialization back to support CONFIG_PM=n.

Cc: stable@vger.kernel.org
Signed-off-by: Helmut Grohne <h.grohne@intenta.de>
Fixes: 3773c195d387 ("gpio: zynq: Do PM initialization earlier to support gpio hogs")
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-zynq.c