/* ACPI doesn't have known method to determine the state of the attention status LED, so we use a callback that was registered with us. This allows hardware specific ACPI implementations to determine its state.  */
static int get_attention_status(struct hotplug_slot *slot, u8 *value)
/* ACPI doesn't have known method to determine the state of the attention status LED, so we use a callback that was registered with us. This allows hardware specific ACPI implementations to determine its state.  */
static int get_attention_status(struct hotplug_slot *slot, u8 *value)
{
	int retval = -EINVAL;
	dbg("%s - physical_slot = %s\n", __func__, hotplug_slot_name(hotplug_slot));
	if (attention_info && try_module_get(attention_info->owner)) {
		retval = attention_info->get_attn(hotplug_slot, value);
		module_put(attention_info->owner);
	} else
		attention_info = NULL;
	return retval;
}