board: msm7x27a: BT GPIO is not toggled when I/O Expander fails.
Bahama's SYS RESET GPIO is put in LOW state in bahama shutdown,
only when the GPIO is available from the I/O expander.
Signed-off-by: Rahul Kashyap <rkashyap@codeaurora.org>
diff --git a/arch/arm/mach-msm/board-msm7x27a.c b/arch/arm/mach-msm/board-msm7x27a.c
index 02563f9..d66c825 100644
--- a/arch/arm/mach-msm/board-msm7x27a.c
+++ b/arch/arm/mach-msm/board-msm7x27a.c
@@ -717,10 +717,12 @@
vreg_put(vreg_s3);
return rc;
}
- rc = bt_set_gpio(0);
- if (rc) {
- pr_err("%s: bt_set_gpio = %d\n",
- __func__, rc);
+ if (value == BAHAMA_ID) {
+ rc = bt_set_gpio(0);
+ if (rc) {
+ pr_err("%s: bt_set_gpio = %d\n",
+ __func__, rc);
+ }
}
return rc;
}