Commit 52fe4bdf authored by Len Brown's avatar Len Brown

ACPI: EC: fix build warning

drivers/acpi/ec.c:657: warning: ‘acpi_ec_register_query_methods’ defined but not used
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent cd8c93a4
...@@ -651,19 +651,6 @@ static struct acpi_ec *make_acpi_ec(void) ...@@ -651,19 +651,6 @@ static struct acpi_ec *make_acpi_ec(void)
return ec; return ec;
} }
static acpi_status
acpi_ec_register_query_methods(acpi_handle handle, u32 level,
void *context, void **return_value)
{
struct acpi_namespace_node *node = handle;
struct acpi_ec *ec = context;
int value = 0;
if (sscanf(node->name.ascii, "_Q%x", &value) == 1) {
acpi_ec_add_query_handler(ec, value, handle, NULL, NULL);
}
return AE_OK;
}
static acpi_status static acpi_status
ec_parse_device(acpi_handle handle, u32 Level, void *context, void **retval) ec_parse_device(acpi_handle handle, u32 Level, void *context, void **retval)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment