Commit bd387db4 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Linus Torvalds

[PATCH] fix compile warnings in via-pmu.c for !CONFIG_PMAC_PBOOK

There's some scoping problems so we get unused variables for that config.
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 04173ecb
...@@ -138,7 +138,6 @@ static int data_len; ...@@ -138,7 +138,6 @@ static int data_len;
static volatile int adb_int_pending; static volatile int adb_int_pending;
static volatile int disable_poll; static volatile int disable_poll;
static struct adb_request bright_req_1, bright_req_2; static struct adb_request bright_req_1, bright_req_2;
static unsigned long async_req_locks;
static struct device_node *vias; static struct device_node *vias;
static int pmu_kind = PMU_UNKNOWN; static int pmu_kind = PMU_UNKNOWN;
static int pmu_fully_inited = 0; static int pmu_fully_inited = 0;
...@@ -155,6 +154,7 @@ static int drop_interrupts; ...@@ -155,6 +154,7 @@ static int drop_interrupts;
static int option_lid_wakeup = 1; static int option_lid_wakeup = 1;
static int sleep_in_progress; static int sleep_in_progress;
static int can_sleep; static int can_sleep;
static unsigned long async_req_locks;
#endif /* CONFIG_PMAC_PBOOK */ #endif /* CONFIG_PMAC_PBOOK */
static unsigned int pmu_irq_stats[11]; static unsigned int pmu_irq_stats[11];
...@@ -494,12 +494,9 @@ static int __init via_pmu_dev_init(void) ...@@ -494,12 +494,9 @@ static int __init via_pmu_dev_init(void)
/* Create /proc/pmu */ /* Create /proc/pmu */
proc_pmu_root = proc_mkdir("pmu", NULL); proc_pmu_root = proc_mkdir("pmu", NULL);
if (proc_pmu_root) { if (proc_pmu_root) {
int i;
proc_pmu_info = create_proc_read_entry("info", 0, proc_pmu_root,
proc_get_info, NULL);
proc_pmu_irqstats = create_proc_read_entry("interrupts", 0, proc_pmu_root,
proc_get_irqstats, NULL);
#ifdef CONFIG_PMAC_PBOOK #ifdef CONFIG_PMAC_PBOOK
int i;
for (i=0; i<pmu_battery_count; i++) { for (i=0; i<pmu_battery_count; i++) {
char title[16]; char title[16];
sprintf(title, "battery_%d", i); sprintf(title, "battery_%d", i);
...@@ -507,6 +504,11 @@ static int __init via_pmu_dev_init(void) ...@@ -507,6 +504,11 @@ static int __init via_pmu_dev_init(void)
proc_get_batt, (void *)i); proc_get_batt, (void *)i);
} }
#endif /* CONFIG_PMAC_PBOOK */ #endif /* CONFIG_PMAC_PBOOK */
proc_pmu_info = create_proc_read_entry("info", 0, proc_pmu_root,
proc_get_info, NULL);
proc_pmu_irqstats = create_proc_read_entry("interrupts", 0, proc_pmu_root,
proc_get_irqstats, NULL);
proc_pmu_options = create_proc_entry("options", 0600, proc_pmu_root); proc_pmu_options = create_proc_entry("options", 0600, proc_pmu_root);
if (proc_pmu_options) { if (proc_pmu_options) {
proc_pmu_options->nlink = 1; proc_pmu_options->nlink = 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment