Detach ata port in prepration of device removal
void ata_port_detach(struct ata_port * ap);
ap
ATA port to be detached
Detach all ATA devices and the associated SCSI devices of ap; then, remove the associated SCSI host. ap is guaranteed to be quiescent on return from this function.
Kernel thread context (may sleep).
Jeff Garzik
Author.