From ee4642aa62413667969261b94b5457f97d49f06e Mon Sep 17 00:00:00 2001 From: Andy Green Date: Mon, 24 Nov 2008 08:13:36 +0000 Subject: fix-gta02-gps-breakage-stale-save.patch Managed to infect earlier patch with stale file in kate breaking gta02 build in andy-tracking. Reported-by: Scott Talbot Signed-off-by: Andy Green --- arch/arm/plat-s3c24xx/neo1973_pm_gps.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'arch/arm/plat-s3c24xx/neo1973_pm_gps.c') diff --git a/arch/arm/plat-s3c24xx/neo1973_pm_gps.c b/arch/arm/plat-s3c24xx/neo1973_pm_gps.c index 8f0a6291db4..1b918939826 100644 --- a/arch/arm/plat-s3c24xx/neo1973_pm_gps.c +++ b/arch/arm/plat-s3c24xx/neo1973_pm_gps.c @@ -29,7 +29,6 @@ /* For GTA02 */ #include -#include #include @@ -276,8 +275,6 @@ static int gps_power_1v5_get(void) static void gps_pwron_set(int on) { - neo1973_gps.power_was_on = !!on; - if (machine_is_neo1973_gta01()) neo1973_gpb_setpin(GTA01_GPIO_GPS_PWRON, on); @@ -303,6 +300,8 @@ static void gps_pwron_set(int on) if ((!on) && (neo1973_gps.power_was_on)) regulator_disable(neo1973_gps.regulator); } + + neo1973_gps.power_was_on = !!on; } static int gps_pwron_get(void) -- cgit v1.2.3