diff options
Diffstat (limited to 'drivers/acpi')
-rw-r--r-- | drivers/acpi/hardware/hwsleep.c | 2 | ||||
-rw-r--r-- | drivers/acpi/osl.c | 3 | ||||
-rw-r--r-- | drivers/acpi/pci_irq.c | 5 | ||||
-rw-r--r-- | drivers/acpi/power.c | 6 | ||||
-rw-r--r-- | drivers/acpi/sleep/main.c | 2 |
5 files changed, 7 insertions, 11 deletions
diff --git a/drivers/acpi/hardware/hwsleep.c b/drivers/acpi/hardware/hwsleep.c index fd1c4ba63367..058d0be5cbe2 100644 --- a/drivers/acpi/hardware/hwsleep.c +++ b/drivers/acpi/hardware/hwsleep.c | |||
@@ -286,13 +286,13 @@ acpi_status asmlinkage acpi_enter_sleep_state(u8 sleep_state) | |||
286 | } | 286 | } |
287 | 287 | ||
288 | /* | 288 | /* |
289 | * 1) Disable/Clear all GPEs | ||
289 | * 2) Enable all wakeup GPEs | 290 | * 2) Enable all wakeup GPEs |
290 | */ | 291 | */ |
291 | status = acpi_hw_disable_all_gpes(); | 292 | status = acpi_hw_disable_all_gpes(); |
292 | if (ACPI_FAILURE(status)) { | 293 | if (ACPI_FAILURE(status)) { |
293 | return_ACPI_STATUS(status); | 294 | return_ACPI_STATUS(status); |
294 | } | 295 | } |
295 | |||
296 | acpi_gbl_system_awake_and_running = FALSE; | 296 | acpi_gbl_system_awake_and_running = FALSE; |
297 | 297 | ||
298 | status = acpi_hw_enable_all_wakeup_gpes(); | 298 | status = acpi_hw_enable_all_wakeup_gpes(); |
diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c index 07c18dbde698..0c41db3075a5 100644 --- a/drivers/acpi/osl.c +++ b/drivers/acpi/osl.c | |||
@@ -258,7 +258,8 @@ acpi_physical_address __init acpi_os_get_root_pointer(void) | |||
258 | } | 258 | } |
259 | } | 259 | } |
260 | 260 | ||
261 | void __iomem *acpi_os_map_memory(acpi_physical_address phys, acpi_size size) | 261 | void __iomem *__init_refok |
262 | acpi_os_map_memory(acpi_physical_address phys, acpi_size size) | ||
262 | { | 263 | { |
263 | if (phys > ULONG_MAX) { | 264 | if (phys > ULONG_MAX) { |
264 | printk(KERN_ERR PREFIX "Cannot map memory that high\n"); | 265 | printk(KERN_ERR PREFIX "Cannot map memory that high\n"); |
diff --git a/drivers/acpi/pci_irq.c b/drivers/acpi/pci_irq.c index 62010c2481b3..76d9c669d2d8 100644 --- a/drivers/acpi/pci_irq.c +++ b/drivers/acpi/pci_irq.c | |||
@@ -51,10 +51,8 @@ static struct acpi_prt_entry *acpi_pci_irq_find_prt_entry(int segment, | |||
51 | int bus, | 51 | int bus, |
52 | int device, int pin) | 52 | int device, int pin) |
53 | { | 53 | { |
54 | struct list_head *node = NULL; | ||
55 | struct acpi_prt_entry *entry = NULL; | 54 | struct acpi_prt_entry *entry = NULL; |
56 | 55 | ||
57 | |||
58 | if (!acpi_prt.count) | 56 | if (!acpi_prt.count) |
59 | return NULL; | 57 | return NULL; |
60 | 58 | ||
@@ -64,8 +62,7 @@ static struct acpi_prt_entry *acpi_pci_irq_find_prt_entry(int segment, | |||
64 | * | 62 | * |
65 | */ | 63 | */ |
66 | spin_lock(&acpi_prt_lock); | 64 | spin_lock(&acpi_prt_lock); |
67 | list_for_each(node, &acpi_prt.entries) { | 65 | list_for_each_entry(entry, &acpi_prt.entries, node) { |
68 | entry = list_entry(node, struct acpi_prt_entry, node); | ||
69 | if ((segment == entry->id.segment) | 66 | if ((segment == entry->id.segment) |
70 | && (bus == entry->id.bus) | 67 | && (bus == entry->id.bus) |
71 | && (device == entry->id.device) | 68 | && (device == entry->id.device) |
diff --git a/drivers/acpi/power.c b/drivers/acpi/power.c index af1769a20c7a..76bf6d90c700 100644 --- a/drivers/acpi/power.c +++ b/drivers/acpi/power.c | |||
@@ -458,11 +458,9 @@ int acpi_power_transition(struct acpi_device *device, int state) | |||
458 | } | 458 | } |
459 | 459 | ||
460 | end: | 460 | end: |
461 | if (result) { | 461 | if (result) |
462 | device->power.state = ACPI_STATE_UNKNOWN; | 462 | device->power.state = ACPI_STATE_UNKNOWN; |
463 | printk(KERN_WARNING PREFIX "Transitioning device [%s] to D%d\n", | 463 | else { |
464 | device->pnp.bus_id, state); | ||
465 | } else { | ||
466 | /* We shouldn't change the state till all above operations succeed */ | 464 | /* We shouldn't change the state till all above operations succeed */ |
467 | device->power.state = state; | 465 | device->power.state = state; |
468 | } | 466 | } |
diff --git a/drivers/acpi/sleep/main.c b/drivers/acpi/sleep/main.c index 7f97e32fc33f..293a1cbb47c0 100644 --- a/drivers/acpi/sleep/main.c +++ b/drivers/acpi/sleep/main.c | |||
@@ -170,7 +170,7 @@ static int acpi_pm_enter(suspend_state_t pm_state) | |||
170 | /* Reprogram control registers and execute _BFS */ | 170 | /* Reprogram control registers and execute _BFS */ |
171 | acpi_leave_sleep_state_prep(acpi_state); | 171 | acpi_leave_sleep_state_prep(acpi_state); |
172 | 172 | ||
173 | /* ACPI 3.0 specs (P62) says that it's the responsabilty | 173 | /* ACPI 3.0 specs (P62) says that it's the responsibility |
174 | * of the OSPM to clear the status bit [ implying that the | 174 | * of the OSPM to clear the status bit [ implying that the |
175 | * POWER_BUTTON event should not reach userspace ] | 175 | * POWER_BUTTON event should not reach userspace ] |
176 | */ | 176 | */ |