/* Called by the PCI code when it removes an SCC PATA controller.  */
static void __devexit scc_remove(struct pci_dev *dev)
/* Called by the PCI code when it removes an SCC PATA controller.  */
static void __devexit scc_remove(struct pci_dev *dev)
{
	struct scc_ports *ports = pci_get_drvdata(dev);
	struct ide_host *host = ports->host;
	ide_host_remove(host);
	iounmap((void*)ports->dma);
	iounmap((void*)ports->ctl);
	pci_release_selected_regions(dev, (1 << 2) - 1);
	memset(ports, 0, sizeof(*ports));
}