From: Laxman Dewangan Date: Wed, 7 Nov 2012 15:01:32 +0000 (+0530) Subject: gpio: tegra: fix suspend/resume apis X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~87^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8939ddc76a2f3399be98a60246ae0b365442f008;p=pandora-kernel.git 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 Acked-by: Stephen Warren Signed-off-by: Linus Walleij --- Reading git-diff-tree failed