diff options
author | Mike Westerhof <mwester@dls.net> | 2008-11-19 17:09:41 +0000 |
---|---|---|
committer | Andy Green <agreen@pads.home.warmcat.com> | 2008-11-19 17:09:41 +0000 |
commit | ee9c944b59f0b93115ba5b1e09e01b8084b017be (patch) | |
tree | 30e1d3729e30d38c9d5aa6ee8efe2507ad7e45aa /arch/arm/plat-s3c24xx | |
parent | a7feadf3c493ed61c0d9481626f9c5506f87ff85 (diff) |
gta01-gps-power-state-resume-preserve.patch
Created an attachment (id=593) / from BZ#79
Updated patch to preserve the power state of the GPS on the GTA01
Currently the GPS is powered up after a suspend/resume occurs. This patch will
only power the GPS back up if it was powered up when the GTA01 suspended.
Signed-off-by: Mike Westerhof <mwester@dls.net>
Diffstat (limited to 'arch/arm/plat-s3c24xx')
-rw-r--r-- | arch/arm/plat-s3c24xx/neo1973_pm_gps.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/plat-s3c24xx/neo1973_pm_gps.c b/arch/arm/plat-s3c24xx/neo1973_pm_gps.c index d020f8d4843..9c6adfad774 100644 --- a/arch/arm/plat-s3c24xx/neo1973_pm_gps.c +++ b/arch/arm/plat-s3c24xx/neo1973_pm_gps.c @@ -514,8 +514,8 @@ static int gta01_pm_gps_resume(struct platform_device *pdev) { #ifdef CONFIG_MACH_NEO1973_GTA01 if (machine_is_neo1973_gta01()) { - /* FIXME */ - gps_power_sequence_up(); + if (neo1973_gps.power_was_on) + gps_power_sequence_up(); } #endif /* CONFIG_MACH_NEO1973_GTA01 */ |