Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 141882
b: refs/heads/master
c: 9cee43e
h: refs/heads/master
v: v3
  • Loading branch information
Bjorn Helgaas authored and Len Brown committed Mar 27, 2009
1 parent 9b804ed commit e5b730e
Show file tree
Hide file tree
Showing 4 changed files with 9 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: 0e46517d9660ee6ae0a0c5d8a4e50451bc84d61d
refs/heads/master: 9cee43e07940bee13462e63bd75ce4430b155886
1 change: 1 addition & 0 deletions trunk/drivers/acpi/bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -885,6 +885,7 @@ static int __init acpi_init(void)
acpi_power_init();
acpi_system_init();
acpi_debug_init();
acpi_sleep_proc_init();
return result;
}

Expand Down
6 changes: 6 additions & 0 deletions trunk/drivers/acpi/internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,9 @@ int acpi_boot_ec_enable(void);
Suspend/Resume
-------------------------------------------------------------------------- */
extern int acpi_sleep_init(void);

#ifdef CONFIG_ACPI_SLEEP
int acpi_sleep_proc_init(void);
#else
static inline int acpi_sleep_proc_init(void) { return 0; }
#endif
7 changes: 1 addition & 6 deletions trunk/drivers/acpi/proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -496,11 +496,8 @@ static u32 rtc_handler(void *context)
}
#endif /* HAVE_ACPI_LEGACY_ALARM */

static int __init acpi_sleep_proc_init(void)
int __init acpi_sleep_proc_init(void)
{
if (acpi_disabled)
return 0;

#ifdef CONFIG_ACPI_PROCFS
/* 'sleep' [R/W] */
proc_create("sleep", S_IFREG | S_IRUGO | S_IWUSR,
Expand All @@ -527,5 +524,3 @@ static int __init acpi_sleep_proc_init(void)

return 0;
}

late_initcall(acpi_sleep_proc_init);

0 comments on commit e5b730e

Please sign in to comment.