/* cxgb3i_sdev_remove - free the allocated resources for the adapter @cdev: t3cdev adapter  */
void cxgb3i_sdev_remove(struct t3cdev *cdev)
/* cxgb3i_sdev_remove - free the allocated resources for the adapter @cdev: t3cdev adapter  */
void cxgb3i_sdev_remove(struct t3cdev *cdev)
{
	struct cxgb3i_sdev_data *cdata = CXGB3_SDEV_DATA(cdev);
	cxgb3i_log_info("t3dev 0x%p, offload down, remove.\n", cdev);
	write_lock(&cdata_rwlock);
	list_del(&cdata->list);
	write_unlock(&cdata_rwlock);
	sdev_data_cleanup(cdata);
}