/* Remove the kernel and hotplug representations of an I/O Slot. Return Codes: 0 Success -EINVAL Vio dev doesn't exist  */
static int dlpar_remove_vio_slot(char *drc_name, struct device_node *dn)
/* Remove the kernel and hotplug representations of an I/O Slot. Return Codes: 0 Success -EINVAL Vio dev doesn't exist  */
static int dlpar_remove_vio_slot(char *drc_name, struct device_node *dn)
{
	struct vio_dev *vio_dev;
	vio_dev = vio_find_node(dn);
	if (!vio_dev)
		return -EINVAL;
	vio_unregister_device(vio_dev);
	return 0;
}