aboutsummaryrefslogtreecommitdiff
path: root/drivers/acpi/debug.c
diff options
context:
space:
mode:
authorLen Brown <len.brown@intel.com>2009-04-05 01:38:31 -0400
committerLen Brown <len.brown@intel.com>2009-04-05 01:38:31 -0400
commit9a38f4eec57cc5104b6a85bc6d0a91b268fbe803 (patch)
treeda01b5dd92d4076878003a8886fc2c9265e578f5 /drivers/acpi/debug.c
parent67dc092187626ac55a60877485f78bc291cbfa81 (diff)
parent018f452e9d9d0cb5c3e8d33fd94dc6cd3c520a8f (diff)
Merge branch 'bjorn-initcall-cleanup' into release
Diffstat (limited to 'drivers/acpi/debug.c')
-rw-r--r--drivers/acpi/debug.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/drivers/acpi/debug.c b/drivers/acpi/debug.c
index 20223cbd0d1..9cb189f3c77 100644
--- a/drivers/acpi/debug.c
+++ b/drivers/acpi/debug.c
@@ -297,17 +297,15 @@ acpi_system_write_debug(struct file *file,
return count;
}
+#endif
-static int __init acpi_debug_init(void)
+int __init acpi_debug_init(void)
{
+#ifdef CONFIG_ACPI_PROCFS
struct proc_dir_entry *entry;
int error = 0;
char *name;
-
- if (acpi_disabled)
- return 0;
-
/* 'debug_layer' [R/W] */
name = ACPI_SYSTEM_FILE_DEBUG_LAYER;
entry =
@@ -338,7 +336,7 @@ static int __init acpi_debug_init(void)
remove_proc_entry(ACPI_SYSTEM_FILE_DEBUG_LAYER, acpi_root_dir);
error = -ENODEV;
goto Done;
-}
-
-subsys_initcall(acpi_debug_init);
+#else
+ return 0;
#endif
+}