Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 141883
b: refs/heads/master
c: 201b8c6
h: refs/heads/master
i:
  141881: 9b804ed
  141879: 3f3b1e7
v: v3
  • Loading branch information
Bjorn Helgaas authored and Len Brown committed Mar 27, 2009
1 parent e5b730e commit 28b53bc
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9cee43e07940bee13462e63bd75ce4430b155886
refs/heads/master: 201b8c655f7a48563f6a0b66f9e388460a1ea611
1 change: 1 addition & 0 deletions trunk/drivers/acpi/bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -886,6 +886,7 @@ static int __init acpi_init(void)
acpi_system_init();
acpi_debug_init();
acpi_sleep_proc_init();
acpi_wakeup_device_init();
return result;
}

Expand Down
2 changes: 2 additions & 0 deletions trunk/drivers/acpi/internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ int acpi_power_get_inferred_state(struct acpi_device *device);
int acpi_power_transition(struct acpi_device *device, int state);
extern int acpi_power_nocheck;

int acpi_wakeup_device_init(void);

/* --------------------------------------------------------------------------
Embedded Controller
-------------------------------------------------------------------------- */
Expand Down
7 changes: 1 addition & 6 deletions trunk/drivers/acpi/wakeup.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,13 +138,10 @@ void acpi_disable_wakeup_device(u8 sleep_state)
spin_unlock(&acpi_device_lock);
}

static int __init acpi_wakeup_device_init(void)
int __init acpi_wakeup_device_init(void)
{
struct list_head *node, *next;

if (acpi_disabled)
return 0;

spin_lock(&acpi_device_lock);
list_for_each_safe(node, next, &acpi_wakeup_device_list) {
struct acpi_device *dev = container_of(node,
Expand All @@ -165,5 +162,3 @@ static int __init acpi_wakeup_device_init(void)
spin_unlock(&acpi_device_lock);
return 0;
}

late_initcall(acpi_wakeup_device_init);

0 comments on commit 28b53bc

Please sign in to comment.