/* Returns allocated request address, NULL on allocation error  */
struct usb_request* cdns3_gadget_ep_alloc_request(struct usb_ep *ep, gfp_t gfp_flags)
/* Returns allocated request address, NULL on allocation error  */
struct usb_request* cdns3_gadget_ep_alloc_request(struct usb_ep *ep, gfp_t gfp_flags)
{
	struct cdns3_endpoint *priv_ep = ep_to_cdns3_ep(ep);
	struct cdns3_request *priv_req;
	priv_req = kzalloc(sizeof(*priv_req), gfp_flags);
	if (!priv_req)
		return NULL;
	priv_req->priv_ep = priv_ep;
	trace_cdns3_alloc_request(priv_req);
	return &priv_req->request;
}