aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
authorRobert Jarzmik <robert.jarzmik@free.fr>2008-11-17 20:29:04 +0100
committerEric Miao <eric.miao@marvell.com>2008-11-22 20:57:21 +0800
commit844c6f6a36984c5fe1bcc2d68a88f2ed212d1eef (patch)
tree01510eb208ece97565588aefccde450584ea4024 /arch/arm
parent999f6338780fa0577b6581941c697c868d1ec2d3 (diff)
downloadkernel_samsung_tuna-844c6f6a36984c5fe1bcc2d68a88f2ed212d1eef.zip
kernel_samsung_tuna-844c6f6a36984c5fe1bcc2d68a88f2ed212d1eef.tar.gz
kernel_samsung_tuna-844c6f6a36984c5fe1bcc2d68a88f2ed212d1eef.tar.bz2
[ARM] pxa/MioA701: bluetooth resume fix
The G3IPL expects the value at RAM address 0xa020b020 to be exactly 1 to setup the bluetooth GPIOs properly. The actual code got a value from gpio_get_value() which was not 1, but a "not equal to 0" integer. Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr> Acked-by: Russell King <rmk+kernel@arm.linux.org.uk> Signed-off-by: Eric Miao <eric.miao@marvell.com>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/mach-pxa/mioa701.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-pxa/mioa701.c b/arch/arm/mach-pxa/mioa701.c
index 0842c53..782903f 100644
--- a/arch/arm/mach-pxa/mioa701.c
+++ b/arch/arm/mach-pxa/mioa701.c
@@ -565,7 +565,7 @@ static int mioa701_sys_suspend(struct sys_device *sysdev, pm_message_t state)
u32 *mem_resume_unknown = phys_to_virt(RESUME_UNKNOWN_ADDR);
/* Devices prepare suspend */
- is_bt_on = gpio_get_value(GPIO83_BT_ON);
+ is_bt_on = !!gpio_get_value(GPIO83_BT_ON);
pxa2xx_mfp_set_lpm(GPIO83_BT_ON,
is_bt_on ? MFP_LPM_DRIVE_HIGH : MFP_LPM_DRIVE_LOW);