/* Reset the I2O controller, disable interrupts and remove all allocated resources.  */
static void __devexit i2o_pci_remove(struct pci_dev *pdev)
/* Reset the I2O controller, disable interrupts and remove all allocated resources.  */
static void __devexit i2o_pci_remove(struct pci_dev *pdev)
{
	struct i2o_controller *c;
	c = pci_get_drvdata(pdev);
	i2o_iop_remove(c);
	i2o_pci_irq_disable(c);
	i2o_pci_free(c);
	pci_disable_device(pdev);
	printk(KERN_INFO "%s: Controller removed.\n", c->name);
	put_device(&c->device);
}