/* Unregister handler for events sent to the ACPI-WMI mapper device.  */
acpi_status wmi_remove_notify_handler(const char *guid)
/* Unregister handler for events sent to the ACPI-WMI mapper device.  */
acpi_status wmi_remove_notify_handler(const char *guid)
{
	struct wmi_block *block;
	acpi_status status;
	if (!guid)
		return AE_BAD_PARAMETER;
	if (!find_guid(guid, &block))
		return AE_NOT_EXIST;
	if (!block->handler)
		return AE_NULL_ENTRY;
	status = wmi_method_enable(block, 0);
	block->handler = NULL;
	block->handler_data = NULL;
	return status;
}