diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2014-11-26 00:44:24 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-11-26 12:28:11 -0500 |
commit | 73529828cf896df5017255136b4dc2386dff0850 (patch) | |
tree | faafa222dd4f46c2eca81fe0961ba579a09f331f /drivers/usb | |
parent | d0f992498e82e656646ad833e3f32ad69cd093e7 (diff) |
usb: chipidea: ci_hdrc_imx.c: Remove unneeded OOM message
MM core code already complains when devm_kzalloc() fails, so no need to print
the error locally.
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/chipidea/ci_hdrc_imx.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/usb/chipidea/ci_hdrc_imx.c b/drivers/usb/chipidea/ci_hdrc_imx.c index 6f8b1b1045b5..8b1482aa1291 100644 --- a/drivers/usb/chipidea/ci_hdrc_imx.c +++ b/drivers/usb/chipidea/ci_hdrc_imx.c | |||
@@ -115,10 +115,8 @@ static int ci_hdrc_imx_probe(struct platform_device *pdev) | |||
115 | const struct ci_hdrc_imx_platform_flag *imx_platform_flag = of_id->data; | 115 | const struct ci_hdrc_imx_platform_flag *imx_platform_flag = of_id->data; |
116 | 116 | ||
117 | data = devm_kzalloc(&pdev->dev, sizeof(*data), GFP_KERNEL); | 117 | data = devm_kzalloc(&pdev->dev, sizeof(*data), GFP_KERNEL); |
118 | if (!data) { | 118 | if (!data) |
119 | dev_err(&pdev->dev, "Failed to allocate ci_hdrc-imx data!\n"); | ||
120 | return -ENOMEM; | 119 | return -ENOMEM; |
121 | } | ||
122 | 120 | ||
123 | data->usbmisc_data = usbmisc_get_init_data(&pdev->dev); | 121 | data->usbmisc_data = usbmisc_get_init_data(&pdev->dev); |
124 | if (IS_ERR(data->usbmisc_data)) | 122 | if (IS_ERR(data->usbmisc_data)) |