pinctrl: qcom: Hook pm_power_down for shutdown support
authorStephen Boyd <sboyd@codeaurora.org>
Tue, 7 Jul 2015 01:09:30 +0000 (18:09 -0700)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 17 Jul 2015 07:59:36 +0000 (09:59 +0200)
commitad64498762dd6f262f8c7c37926cd56693e109ba
tree7494f560b77e218c7d0e4ccb0702c28f8e362fdf
parente3f3aaac06657e6fc834e217ae450f51a6e0968c
pinctrl: qcom: Hook pm_power_down for shutdown support

Assign pm_power_off() if we have the PS_HOLD functionality so
that we can properly shutdown the SoC. Otherwise, shutdown won't
do anything besides put the CPU into a tight loop. Unfortunately,
we have to use a singleton here because pm_power_off() doesn't
take any arguments. Fortunately there's only one instance of the
pinctrl device on a running system so this isn't a problem.

Cc: Pramod Gurav <pramod.gurav@smartplayin.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Acked-by: Bjorn Andersson <bjorn.andersson@sonymobile.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/qcom/pinctrl-msm.c
This page took 0.029608 seconds and 5 git commands to generate.