• Helmut Grohne's avatar
    gpio: zynq: initialize clock even without CONFIG_PM · 0f84f29f
    Helmut Grohne authored
    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: default avatarHelmut Grohne <h.grohne@intenta.de>
    Fixes: 3773c195 ("gpio: zynq: Do PM initialization earlier to support gpio hogs")
    Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
    0f84f29f
gpio-zynq.c 24.4 KB