diff options
Diffstat (limited to 'drivers/acpi/utils.c')
-rw-r--r-- | drivers/acpi/utils.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/acpi/utils.c b/drivers/acpi/utils.c index 744371304313..b08d97376f84 100644 --- a/drivers/acpi/utils.c +++ b/drivers/acpi/utils.c | |||
@@ -495,3 +495,18 @@ acpi_handle_printk(const char *level, acpi_handle handle, const char *fmt, ...) | |||
495 | kfree(buffer.pointer); | 495 | kfree(buffer.pointer); |
496 | } | 496 | } |
497 | EXPORT_SYMBOL(acpi_handle_printk); | 497 | EXPORT_SYMBOL(acpi_handle_printk); |
498 | |||
499 | /** | ||
500 | * acpi_has_method: Check whether @handle has a method named @name | ||
501 | * @handle: ACPI device handle | ||
502 | * @name: name of object or method | ||
503 | * | ||
504 | * Check whether @handle has a method named @name. | ||
505 | */ | ||
506 | bool acpi_has_method(acpi_handle handle, char *name) | ||
507 | { | ||
508 | acpi_handle tmp; | ||
509 | |||
510 | return ACPI_SUCCESS(acpi_get_handle(handle, name, &tmp)); | ||
511 | } | ||
512 | EXPORT_SYMBOL(acpi_has_method); | ||