aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/plat-s3c24xx
diff options
context:
space:
mode:
authorAndy Green <andy@openmoko.com>2009-01-30 16:08:19 +0000
committerAndy Green <agreen@octopus.localdomain>2009-01-30 16:08:19 +0000
commit9adc37fe749100c76e7be4d86af5ce984dfacc5a (patch)
treeadce788a01e02a3a9744d3f57065af09ac907f44 /arch/arm/plat-s3c24xx
parent8917ce566c759b166991db57fb7e074a2acfa81b (diff)
clean-gta01-gps-warnings.patch
Signed-off-by: Andy Green <andy@openmoko.com>
Diffstat (limited to 'arch/arm/plat-s3c24xx')
-rw-r--r--arch/arm/plat-s3c24xx/neo1973_pm_gps.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/arch/arm/plat-s3c24xx/neo1973_pm_gps.c b/arch/arm/plat-s3c24xx/neo1973_pm_gps.c
index dbaa6eb6f68..1a5fdb24a5d 100644
--- a/arch/arm/plat-s3c24xx/neo1973_pm_gps.c
+++ b/arch/arm/plat-s3c24xx/neo1973_pm_gps.c
@@ -420,8 +420,6 @@ static ssize_t power_gps_write(struct device *dev,
/* This is the nRESET pin */
static void gps_rst_set(int on)
{
- struct regulator *regulator = neo1973_gps.regulator[GTA01_GPS_REG_2V5];
-
switch (system_rev) {
case GTA01v3_SYSTEM_REV:
pcf50606_gpo_set_active(gta01_pcf, PCF50606_GPO1, on);
@@ -437,8 +435,6 @@ static void gps_rst_set(int on)
static int gps_rst_get(void)
{
- struct regulator *regulator = neo1973_gps.regulator[GTA01_GPS_REG_1V5];
-
switch (system_rev) {
case GTA01v3_SYSTEM_REV:
return pcf50606_gpo_get_active(gta01_pcf, PCF50606_GPO1);
@@ -628,6 +624,10 @@ static struct attribute_group gta02_gps_attr_group = {
static int __init gta01_pm_gps_probe(struct platform_device *pdev)
{
+#ifdef CONFIG_MACH_NEO1973_GTA01
+ int entries = ARRAY_SIZE(gta01_gps_sysfs_entries);
+#endif
+
if (machine_is_neo1973_gta01()) {
s3c2410_gpio_cfgpin(GTA01_GPIO_GPS_PWRON, S3C2410_GPIO_OUTPUT);
@@ -675,7 +675,6 @@ static int __init gta01_pm_gps_probe(struct platform_device *pdev)
gps_power_sequence_down();
switch (system_rev) {
- int entries = ARRAY_SIZE(gta01_gps_sysfs_entries);
case GTA01v3_SYSTEM_REV:
case GTA01v4_SYSTEM_REV:
case GTA01Bv2_SYSTEM_REV: