summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Chen <peter.chen@freescale.com>2014-10-14 15:56:11 +0800
committerFelipe Balbi <balbi@ti.com>2014-11-03 10:01:04 -0600
commit0816ea2fa3c046b8c867aadbaadf19eb2fc3ac87 (patch)
tree2c0b70c6b0ffd9aa62fc22b21bfc4d39eeef3f20
parent6a58856f25e1fedd7362a1ee598d5c890c3ed334 (diff)
downloadblackbird-op-linux-0816ea2fa3c046b8c867aadbaadf19eb2fc3ac87.tar.gz
blackbird-op-linux-0816ea2fa3c046b8c867aadbaadf19eb2fc3ac87.zip
usb: musb: musb_dsps: delete unnecessary 'out of memory' messages
The memory subsystem has already had similar message for it. Signed-off-by: Peter Chen <peter.chen@freescale.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
-rw-r--r--drivers/usb/musb/musb_dsps.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/usb/musb/musb_dsps.c b/drivers/usb/musb/musb_dsps.c
index 48bc09e7b83b..6209456861b6 100644
--- a/drivers/usb/musb/musb_dsps.c
+++ b/drivers/usb/musb/musb_dsps.c
@@ -729,7 +729,6 @@ static int dsps_create_musb_pdev(struct dsps_glue *glue,
config = devm_kzalloc(&parent->dev, sizeof(*config), GFP_KERNEL);
if (!config) {
- dev_err(dev, "failed to allocate musb hdrc config\n");
ret = -ENOMEM;
goto err;
}
@@ -781,10 +780,8 @@ static int dsps_probe(struct platform_device *pdev)
/* allocate glue */
glue = devm_kzalloc(&pdev->dev, sizeof(*glue), GFP_KERNEL);
- if (!glue) {
- dev_err(&pdev->dev, "unable to allocate glue memory\n");
+ if (!glue)
return -ENOMEM;
- }
glue->dev = &pdev->dev;
glue->wrp = wrp;
OpenPOWER on IntegriCloud