]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8fccb2dbef5cdebfed92da62e161fb6a93259466
tree6186d77109d9dbd5ac7b42d88f0a818c3553fef3
parentb1abc4af2f2cc652867c983bef9a59973672a3da
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: 6cf776ec765e ("gpio: zynq: Do PM initialization earlier to support gpio hogs")
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-zynq.c