提交 906f5dc9 编写于 作者: W Wolfram Sang 提交者: Greg Kroah-Hartman

usb: musb: am35x: don't print on ENOMEM

All kmalloc-based functions print enough information on failures.
Signed-off-by: NWolfram Sang <wsa-dev@sang-engineering.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 0c2bc5c2
...@@ -474,10 +474,8 @@ static int am35x_probe(struct platform_device *pdev) ...@@ -474,10 +474,8 @@ static int am35x_probe(struct platform_device *pdev)
int ret = -ENOMEM; int ret = -ENOMEM;
glue = kzalloc(sizeof(*glue), GFP_KERNEL); glue = kzalloc(sizeof(*glue), GFP_KERNEL);
if (!glue) { if (!glue)
dev_err(&pdev->dev, "failed to allocate glue context\n");
goto err0; goto err0;
}
phy_clk = clk_get(&pdev->dev, "fck"); phy_clk = clk_get(&pdev->dev, "fck");
if (IS_ERR(phy_clk)) { if (IS_ERR(phy_clk)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册