diff options
Diffstat (limited to 'drivers/acpi/debug.c')
-rw-r--r-- | drivers/acpi/debug.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/drivers/acpi/debug.c b/drivers/acpi/debug.c index 25f9c38531bd..a8287be0870e 100644 --- a/drivers/acpi/debug.c +++ b/drivers/acpi/debug.c | |||
@@ -292,17 +292,15 @@ acpi_system_write_debug(struct file *file, | |||
292 | 292 | ||
293 | return count; | 293 | return count; |
294 | } | 294 | } |
295 | #endif | ||
295 | 296 | ||
296 | static int __init acpi_debug_init(void) | 297 | int __init acpi_debug_init(void) |
297 | { | 298 | { |
299 | #ifdef CONFIG_ACPI_PROCFS | ||
298 | struct proc_dir_entry *entry; | 300 | struct proc_dir_entry *entry; |
299 | int error = 0; | 301 | int error = 0; |
300 | char *name; | 302 | char *name; |
301 | 303 | ||
302 | |||
303 | if (acpi_disabled) | ||
304 | return 0; | ||
305 | |||
306 | /* 'debug_layer' [R/W] */ | 304 | /* 'debug_layer' [R/W] */ |
307 | name = ACPI_SYSTEM_FILE_DEBUG_LAYER; | 305 | name = ACPI_SYSTEM_FILE_DEBUG_LAYER; |
308 | entry = | 306 | entry = |
@@ -333,7 +331,7 @@ static int __init acpi_debug_init(void) | |||
333 | remove_proc_entry(ACPI_SYSTEM_FILE_DEBUG_LAYER, acpi_root_dir); | 331 | remove_proc_entry(ACPI_SYSTEM_FILE_DEBUG_LAYER, acpi_root_dir); |
334 | error = -ENODEV; | 332 | error = -ENODEV; |
335 | goto Done; | 333 | goto Done; |
336 | } | 334 | #else |
337 | 335 | return 0; | |
338 | subsys_initcall(acpi_debug_init); | ||
339 | #endif | 336 | #endif |
337 | } | ||