/* Register a handler for events sent to the ACPI-WMI mapper device.  */
acpi_status wmi_install_notify_handler(const char *guid, wmi_notify_handler handler, void *data)
/* Register a handler for events sent to the ACPI-WMI mapper device.  */
acpi_status wmi_install_notify_handler(const char *guid, wmi_notify_handler handler, void *data)
{
	struct wmi_block *block;
	acpi_status status;
	if (!guid || !handler)
		return AE_BAD_PARAMETER;
	if (!find_guid(guid, &block))
		return AE_NOT_EXIST;
	if (block->handler)
		return AE_ALREADY_ACQUIRED;
	block->handler = handler;
	block->handler_data = data;
	status = wmi_method_enable(block, 1);
	return status;
}