struct pci_dev *bridge_dev;  bridge_dev = slot->bridge; if (!bridge_dev) { printk(KERN_ERR "%s: unexpected null bridge device\n", __FUNCTION__); return -EIO; }
struct pci_bus *bus = slot->bus;
int dlpar_remove_pci_slot(struct slot *slot, char *drc_name){	struct pci_dev *bridge_dev;	bridge_dev = slot->bridge;	if (!bridge_dev) {		printk(KERN_ERR "%s: unexpected null bridge device\n",			__FUNCTION__);		return -EIO;	}	/* Remove hotplug slot */	if (rpaphp_remove_slot(slot)) {		printk(KERN_ERR "%s: unable to remove hotplug slot %s\n",			__FUNCTION__, drc_name);		return -EIO;	}	/* Remove pci bus */	if (dlpar_pci_remove_bus(bridge_dev)) {		printk(KERN_ERR "%s: unable to remove pci bus %s\n",			__FUNCTION__, drc_name);		return -EIO;	}	return 0;}