summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJee Su Chang <w20740@motorola.com>2014-06-07 15:31:45 -0500
committerJee Su Chang <w20740@motorola.com>2014-06-07 15:31:45 -0500
commited24278545cafd0d5340fae510ec1074c144dcac (patch)
tree3fe5f5e9a1a3324d98d49aaf60f01fcafb7f3e63
parent170e6d9b50f76dddffaf77ece7f9964d43fbc93b (diff)
downloadolio-linux-3.10-ed24278545cafd0d5340fae510ec1074c144dcac.tar.xz
olio-linux-3.10-ed24278545cafd0d5340fae510ec1074c144dcac.zip
IKXCLOCK-2158 C55: Fix bug where C55 pins not in right state in suspend
Change-Id: Icb86d87304c21497540f6be5af1dfc32f6d93ec6
-rw-r--r--drivers/misc/c55_ctrl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/misc/c55_ctrl.c b/drivers/misc/c55_ctrl.c
index f5bf3f4216d..3516ac16706 100644
--- a/drivers/misc/c55_ctrl.c
+++ b/drivers/misc/c55_ctrl.c
@@ -384,11 +384,11 @@ static int c55_ctrl_suspend(struct platform_device *dev, pm_message_t state)
* for current drain reasons */
gpio_set_value(cdata->ap_c55_int_gpio, 0);
- pinctrl_select_state(cdata->pctrl, cdata->states[C55_OFF]);
-
cdata->c55_mode = C55_OFF;
}
+ pinctrl_select_state(cdata->pctrl, cdata->states[C55_OFF]);
+
return 0;
}