aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--arch/arm/plat-s3c24xx/neo1973_pm_gps.c5
1 files changed, 2 insertions, 3 deletions
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 <mach/gta02.h>
-#include <linux/pcf50633.h>
#include <linux/regulator/consumer.h>
@@ -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)