/* OS entry point to allow for host driver to free allocated memory Called if no device present or device being unloaded  */
static void mptfc_target_destroy(struct scsi_target *starget)
/* OS entry point to allow for host driver to free allocated memory Called if no device present or device being unloaded  */
static void mptfc_target_destroy(struct scsi_target *starget)
{
	struct fc_rport		*rport;
	struct mptfc_rport_info *ri;
	rport = starget_to_rport(starget);
	if (rport) {
		ri = *((struct mptfc_rport_info **)rport->dd_data);
		if (ri)
			ri->starget = NULL;
	}
	if (starget->hostdata)
		kfree(starget->hostdata);
	starget->hostdata = NULL;
}