diff options
author | Wolfram Sang <wsa-dev@sang-engineering.com> | 2016-08-25 13:39:26 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-08-30 13:17:38 -0400 |
commit | 906f5dc99c93f564f1a17b6f908701efd7e90baa (patch) | |
tree | 1af3a83f4da9fc7f5a399922f722ed2fa33261a0 /drivers/usb | |
parent | 0c2bc5c2cb267c41f073132d1817df917ab8ba47 (diff) |
usb: musb: am35x: don't print on ENOMEM
All kmalloc-based functions print enough information on failures.
Signed-off-by: Wolfram Sang <wsa-dev@sang-engineering.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/musb/am35x.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/usb/musb/am35x.c b/drivers/usb/musb/am35x.c index c41fe588d14d..c14577dbedf7 100644 --- a/drivers/usb/musb/am35x.c +++ b/drivers/usb/musb/am35x.c | |||
@@ -474,10 +474,8 @@ static int am35x_probe(struct platform_device *pdev) | |||
474 | int ret = -ENOMEM; | 474 | int ret = -ENOMEM; |
475 | 475 | ||
476 | glue = kzalloc(sizeof(*glue), GFP_KERNEL); | 476 | glue = kzalloc(sizeof(*glue), GFP_KERNEL); |
477 | if (!glue) { | 477 | if (!glue) |
478 | dev_err(&pdev->dev, "failed to allocate glue context\n"); | ||
479 | goto err0; | 478 | goto err0; |
480 | } | ||
481 | 479 | ||
482 | phy_clk = clk_get(&pdev->dev, "fck"); | 480 | phy_clk = clk_get(&pdev->dev, "fck"); |
483 | if (IS_ERR(phy_clk)) { | 481 | if (IS_ERR(phy_clk)) { |