浏览代码

usb: musb: tusb6010: fix error path in tusb_probe()

On platform_device_add() failure, the TUSB6010 glue layer forgets to call
platform_device_put() -- probably due to a typo...

Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Sergei Shtylyov 13 年之前
父节点
当前提交
ff41aaa3b6
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/usb/musb/tusb6010.c

+ 1 - 1
drivers/usb/musb/tusb6010.c

@@ -1215,7 +1215,7 @@ static int __devinit tusb_probe(struct platform_device *pdev)
 	ret = platform_device_add(musb);
 	if (ret) {
 		dev_err(&pdev->dev, "failed to register musb device\n");
-		goto err1;
+		goto err2;
 	}
 
 	return 0;