From 91c639638bb2b7d0cc4d4235528aec653e2e4570 Mon Sep 17 00:00:00 2001 From: Jonas Bonn Date: Wed, 19 Nov 2008 17:10:56 +0000 Subject: Fix build warnings that depend on machine configuration Signed-off-by: Jonas Bonn --- arch/arm/plat-s3c24xx/neo1973_pm_bt.c | 2 ++ arch/arm/plat-s3c24xx/neo1973_pm_gps.c | 4 ++++ 2 files changed, 6 insertions(+) (limited to 'arch') diff --git a/arch/arm/plat-s3c24xx/neo1973_pm_bt.c b/arch/arm/plat-s3c24xx/neo1973_pm_bt.c index c833a74425d..de0faf20d3b 100644 --- a/arch/arm/plat-s3c24xx/neo1973_pm_bt.c +++ b/arch/arm/plat-s3c24xx/neo1973_pm_bt.c @@ -86,7 +86,9 @@ static ssize_t bt_write(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) { unsigned long on = simple_strtoul(buf, NULL, 10); +#ifdef CONFIG_MACH_NEO1973_GTA02 unsigned int vol; +#endif if (!strcmp(attr->attr.name, "power_on")) { switch (machine_arch_type) { diff --git a/arch/arm/plat-s3c24xx/neo1973_pm_gps.c b/arch/arm/plat-s3c24xx/neo1973_pm_gps.c index 111779e3985..57f1695b32b 100644 --- a/arch/arm/plat-s3c24xx/neo1973_pm_gps.c +++ b/arch/arm/plat-s3c24xx/neo1973_pm_gps.c @@ -537,6 +537,7 @@ static int gta01_pm_gps_resume(struct platform_device *pdev) #define gta01_pm_gps_resume NULL #endif +#ifdef CONFIG_MACH_NEO1973_GTA01 static struct attribute *gta01_gps_sysfs_entries[] = { &dev_attr_power_avdd_3v.attr, &dev_attr_pwron.attr, @@ -553,7 +554,9 @@ static struct attribute_group gta01_gps_attr_group = { .name = NULL, .attrs = gta01_gps_sysfs_entries, }; +#endif +#ifdef CONFIG_MACH_NEO1973_GTA02 static struct attribute *gta02_gps_sysfs_entries[] = { &dev_attr_pwron.attr, NULL @@ -563,6 +566,7 @@ static struct attribute_group gta02_gps_attr_group = { .name = NULL, .attrs = gta02_gps_sysfs_entries, }; +#endif static int __init gta01_pm_gps_probe(struct platform_device *pdev) { -- cgit v1.2.3