/* A platform bus ATA device has been unplugged. Perform the needed cleanup. Also called on module unload for any active devices.  */
int __pata_platform_remove(struct device *dev)
/* A platform bus ATA device has been unplugged. Perform the needed cleanup. Also called on module unload for any active devices.  */
int __pata_platform_remove(struct device *dev)
{
	struct ata_host *host = dev_get_drvdata(dev);
	ata_host_detach(host);
	return 0;
}