gpio: tegra: fix suspend/resume apis
authorLaxman Dewangan <ldewangan@nvidia.com>
Wed, 7 Nov 2012 15:01:32 +0000 (20:31 +0530)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 8 Nov 2012 21:23:18 +0000 (22:23 +0100)
commit8939ddc76a2f3399be98a60246ae0b365442f008
tree60771f0178d62b5f0f7592931b1dafc93c25395c
parent5c868fc629b0e645a68aec3a6834d965e71531f4
gpio: tegra: fix suspend/resume apis

Following are changes done to fix the suspend/resume
functionality of tegra gpio driver:
- Protect suspend/resume callbacks with CONFIG_PM_SLEEP
  because CONFIG_PM doesn't actually enable any of the PM callbacks, it
  only allows to enable CONFIG_PM_SLEEP and CONFIG_PM_RUNTIME.
  This means if CONFIG_PM is used to protect system sleep callbacks
  then it may end up unreferenced if only runtime PM is enabled.

- Fix the suspend/resume APIs declaration as per callback prototype.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Acked-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-tegra.c