/* ufshcd_memory_alloc - allocate memory for host memory space data structures  */
static int ufshcd_memory_alloc(struct ufs_hba *hba)
/* ufshcd_memory_alloc - allocate memory for host memory space data structures  */
static int ufshcd_memory_alloc(struct ufs_hba *hba)
{
	hba->utrdl = memalign(1024, sizeof(struct utp_transfer_req_desc));
	if (!hba->utrdl) {
		dev_err(hba->dev, "Transfer Descriptor memory allocation failed\n");
		return -ENOMEM;
	}
	hba->ucdl = memalign(1024, sizeof(struct utp_transfer_cmd_desc));
	if (!hba->ucdl) {
		dev_err(hba->dev, "Command descriptor memory allocation failed\n");
		return -ENOMEM;
	}
	return 0;
}