diff options
Diffstat (limited to 'drivers/acpi/sleep/proc.c')
| -rw-r--r-- | drivers/acpi/sleep/proc.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/acpi/sleep/proc.c b/drivers/acpi/sleep/proc.c index 76b45f0b8341..61f1822cc350 100644 --- a/drivers/acpi/sleep/proc.c +++ b/drivers/acpi/sleep/proc.c | |||
| @@ -349,8 +349,7 @@ acpi_system_write_alarm(struct file *file, | |||
| 349 | end: | 349 | end: |
| 350 | return_VALUE(result ? result : count); | 350 | return_VALUE(result ? result : count); |
| 351 | } | 351 | } |
| 352 | #endif /* HAVE_ACPI_LEGACY_ALARM */ | 352 | #endif /* HAVE_ACPI_LEGACY_ALARM */ |
| 353 | |||
| 354 | 353 | ||
| 355 | extern struct list_head acpi_wakeup_device_list; | 354 | extern struct list_head acpi_wakeup_device_list; |
| 356 | extern spinlock_t acpi_device_lock; | 355 | extern spinlock_t acpi_device_lock; |
| @@ -380,8 +379,8 @@ acpi_system_wakeup_device_seq_show(struct seq_file *seq, void *offset) | |||
| 380 | dev->wakeup.state.enabled ? "enabled" : "disabled"); | 379 | dev->wakeup.state.enabled ? "enabled" : "disabled"); |
| 381 | if (ldev) | 380 | if (ldev) |
| 382 | seq_printf(seq, "%s:%s", | 381 | seq_printf(seq, "%s:%s", |
| 383 | ldev->bus ? ldev->bus->name : "no-bus", | 382 | ldev->bus ? ldev->bus->name : "no-bus", |
| 384 | ldev->bus_id); | 383 | ldev->bus_id); |
| 385 | seq_printf(seq, "\n"); | 384 | seq_printf(seq, "\n"); |
| 386 | put_device(ldev); | 385 | put_device(ldev); |
| 387 | 386 | ||
| @@ -490,7 +489,7 @@ static u32 rtc_handler(void *context) | |||
| 490 | 489 | ||
| 491 | return ACPI_INTERRUPT_HANDLED; | 490 | return ACPI_INTERRUPT_HANDLED; |
| 492 | } | 491 | } |
| 493 | #endif /* HAVE_ACPI_LEGACY_ALARM */ | 492 | #endif /* HAVE_ACPI_LEGACY_ALARM */ |
| 494 | 493 | ||
| 495 | static int __init acpi_sleep_proc_init(void) | 494 | static int __init acpi_sleep_proc_init(void) |
| 496 | { | 495 | { |
| @@ -517,7 +516,7 @@ static int __init acpi_sleep_proc_init(void) | |||
| 517 | entry->proc_fops = &acpi_system_alarm_fops; | 516 | entry->proc_fops = &acpi_system_alarm_fops; |
| 518 | 517 | ||
| 519 | acpi_install_fixed_event_handler(ACPI_EVENT_RTC, rtc_handler, NULL); | 518 | acpi_install_fixed_event_handler(ACPI_EVENT_RTC, rtc_handler, NULL); |
| 520 | #endif /* HAVE_ACPI_LEGACY_ALARM */ | 519 | #endif /* HAVE_ACPI_LEGACY_ALARM */ |
| 521 | 520 | ||
| 522 | /* 'wakeup device' [R/W] */ | 521 | /* 'wakeup device' [R/W] */ |
| 523 | entry = | 522 | entry = |
