diff options
author | Paul Fertser <fercerpav@gmail.com> | 2009-06-05 11:11:04 +0400 |
---|---|---|
committer | Nelson Castillo <arhuaco@freaks-unidos.net> | 2009-06-09 08:09:02 -0300 |
commit | 6e7fee4b8ed7a8669d5e4eaa492e8c6cb6105de6 (patch) | |
tree | 029331f3ef5d7006074f3dce025d2e438f0f244d /arch | |
parent | 23b564c9d22cc5e442361e632626d5f131c40752 (diff) |
GTA02: gps power management bugfix
After suspending with GPS powered on power_on sysfs node reports 0 and GPS
is actually unpowered but "echo 1 > power_on" has no effect. This patch
fixes it.
Reported and analised by Timo Juhani Lindfors <timo.lindfors@iki.fi>,
ticket #2293.
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/plat-s3c24xx/neo1973_pm_gps.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/plat-s3c24xx/neo1973_pm_gps.c b/arch/arm/plat-s3c24xx/neo1973_pm_gps.c index 93b491137e7..b59d4959257 100644 --- a/arch/arm/plat-s3c24xx/neo1973_pm_gps.c +++ b/arch/arm/plat-s3c24xx/neo1973_pm_gps.c @@ -305,7 +305,8 @@ static void gps_pwron_set(int on) /* remove pulldown now it won't be floating any more */ s3c2410_gpio_pullup(S3C2410_GPH5, 0); - if (!neo1973_gps.power_was_on) + if (!regulator_is_enabled(neo1973_gps.regulator[ + GTA02_GPS_REG_RF_3V])) regulator_enable(neo1973_gps.regulator[ GTA02_GPS_REG_RF_3V]); return; |