/* Returns pointer to the new node or NULL if unsuccessful.  */
struct pci_func* cpqhp_slot_create(u8 busnumber)
/* Returns pointer to the new node or NULL if unsuccessful.  */
struct pci_func* cpqhp_slot_create(u8 busnumber)
{
	struct pci_func *new_slot;
	struct pci_func *next;
	new_slot = kzalloc(sizeof(*new_slot), GFP_KERNEL);
	if (new_slot == NULL)
		return new_slot;
	new_slot->next = NULL;
	new_slot->configured = 1;
	if (cpqhp_slot_list[busnumber] == NULL) {
		cpqhp_slot_list[busnumber] = new_slot;
	} else {
		next = cpqhp_slot_list[busnumber];
		while (next->next != NULL)
			next = next->next;
		next->next = new_slot;
	}
	return new_slot;
}