Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4b7e450f authored by Wei Yongjun's avatar Wei Yongjun Committed by Felipe Balbi
Browse files

usb: musb: omap2430: add missing platform_device_put() on error in omap2430_probe()



Add the missing platform_device_put() before return from
omap2430_probe() in the error handling case.

Introduced by commit ca784be3
(usb: start using the control module driver)

Signed-off-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent c8c18883
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -549,7 +549,8 @@ static int omap2430_probe(struct platform_device *pdev)
		glue->control_otghs = omap_get_control_dev();
		if (IS_ERR(glue->control_otghs)) {
			dev_vdbg(&pdev->dev, "Failed to get control device\n");
			return -ENODEV;
			ret = PTR_ERR(glue->control_otghs);
			goto err2;
		}
	} else {
		glue->control_otghs = ERR_PTR(-ENODEV);