/* This routine will return the hotplug slot structure for a given device node. Note that built-in PCI slots may be dlpar-able, but not hot-pluggable, so this routine will return NULL for built-in PCI slots.  */
static struct slot* find_php_slot(struct device_node *dn)
/* This routine will return the hotplug slot structure for a given device node. Note that built-in PCI slots may be dlpar-able, but not hot-pluggable, so this routine will return NULL for built-in PCI slots.  */
static struct slot* find_php_slot(struct device_node *dn)
{
	struct list_head *tmp, *n;
	struct slot *slot;
	list_for_each_safe(tmp, n, &rpaphp_slot_head) {
		slot = list_entry(tmp, struct slot, rpaphp_slot_list);
		if (slot->dn == dn)
			return slot;
	}
	return NULL;
}