/* Because there is no direct method of getting the LED status directly from an ACPI call, we read the aPCI table and parse out our slot descriptor to read the status from that.  */
static int ibm_get_attention_status(struct hotplug_slot *slot, u8 *status)
/* Because there is no direct method of getting the LED status directly from an ACPI call, we read the aPCI table and parse out our slot descriptor to read the status from that.  */
static int ibm_get_attention_status(struct hotplug_slot *slot, u8 *status)
{
	union apci_descriptor *ibm_slot;
	ibm_slot = ibm_slot_from_id(hpslot_to_sun(slot));
	if (ibm_slot->slot.attn & 0xa0 || ibm_slot->slot.status[1] & 0x08)
		*status = 1;
	else
		*status = 0;
	dbg("%s: get slot %d (%d) attention status is %d\n", __func__,
			ibm_slot->slot.slot_num, ibm_slot->slot.slot_id,
			*status);
	kfree(ibm_slot);
	return 0;
}