|
@@ -549,7 +549,8 @@ static int omap2430_probe(struct platform_device *pdev)
|
|
|
glue->control_otghs = omap_get_control_dev();
|
|
glue->control_otghs = omap_get_control_dev();
|
|
|
if (IS_ERR(glue->control_otghs)) {
|
|
if (IS_ERR(glue->control_otghs)) {
|
|
|
dev_vdbg(&pdev->dev, "Failed to get control device\n");
|
|
dev_vdbg(&pdev->dev, "Failed to get control device\n");
|
|
|
- return -ENODEV;
|
|
|
|
|
|
|
+ ret = PTR_ERR(glue->control_otghs);
|
|
|
|
|
+ goto err2;
|
|
|
}
|
|
}
|
|
|
} else {
|
|
} else {
|
|
|
glue->control_otghs = ERR_PTR(-ENODEV);
|
|
glue->control_otghs = ERR_PTR(-ENODEV);
|