Commit 8a67ab7d authored by Jingoo Han's avatar Jingoo Han Committed by Felipe Balbi

usb: gadget: fsl_udc_core: remove unnecessary OOM messages

The site-specific OOM messages are unnecessary, because they
duplicate the MM subsystem generic OOM message.
Signed-off-by: default avatarJingoo Han <jg1.han@samsung.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 0351c329
...@@ -2252,10 +2252,8 @@ static int __init struct_udc_setup(struct fsl_udc *udc, ...@@ -2252,10 +2252,8 @@ static int __init struct_udc_setup(struct fsl_udc *udc,
udc->phy_mode = pdata->phy_mode; udc->phy_mode = pdata->phy_mode;
udc->eps = kzalloc(sizeof(struct fsl_ep) * udc->max_ep, GFP_KERNEL); udc->eps = kzalloc(sizeof(struct fsl_ep) * udc->max_ep, GFP_KERNEL);
if (!udc->eps) { if (!udc->eps)
ERR("malloc fsl_ep failed\n");
return -1; return -1;
}
/* initialized QHs, take care of alignment */ /* initialized QHs, take care of alignment */
size = udc->max_ep * sizeof(struct ep_queue_head); size = udc->max_ep * sizeof(struct ep_queue_head);
...@@ -2338,10 +2336,8 @@ static int __init fsl_udc_probe(struct platform_device *pdev) ...@@ -2338,10 +2336,8 @@ static int __init fsl_udc_probe(struct platform_device *pdev)
u32 dccparams; u32 dccparams;
udc_controller = kzalloc(sizeof(struct fsl_udc), GFP_KERNEL); udc_controller = kzalloc(sizeof(struct fsl_udc), GFP_KERNEL);
if (udc_controller == NULL) { if (udc_controller == NULL)
ERR("malloc udc failed\n");
return -ENOMEM; return -ENOMEM;
}
pdata = dev_get_platdata(&pdev->dev); pdata = dev_get_platdata(&pdev->dev);
udc_controller->pdata = pdata; udc_controller->pdata = pdata;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment