|
@@ -3599,6 +3599,7 @@ static int __devinit s3c_hsotg_probe(struct platform_device *pdev)
|
|
|
|
|
|
if (hsotg->num_of_eps == 0) {
|
|
if (hsotg->num_of_eps == 0) {
|
|
dev_err(dev, "wrong number of EPs (zero)\n");
|
|
dev_err(dev, "wrong number of EPs (zero)\n");
|
|
|
|
+ ret = -EINVAL;
|
|
goto err_supplies;
|
|
goto err_supplies;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -3606,6 +3607,7 @@ static int __devinit s3c_hsotg_probe(struct platform_device *pdev)
|
|
GFP_KERNEL);
|
|
GFP_KERNEL);
|
|
if (!eps) {
|
|
if (!eps) {
|
|
dev_err(dev, "cannot get memory\n");
|
|
dev_err(dev, "cannot get memory\n");
|
|
|
|
+ ret = -ENOMEM;
|
|
goto err_supplies;
|
|
goto err_supplies;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -3622,6 +3624,7 @@ static int __devinit s3c_hsotg_probe(struct platform_device *pdev)
|
|
GFP_KERNEL);
|
|
GFP_KERNEL);
|
|
if (!hsotg->ctrl_req) {
|
|
if (!hsotg->ctrl_req) {
|
|
dev_err(dev, "failed to allocate ctrl req\n");
|
|
dev_err(dev, "failed to allocate ctrl req\n");
|
|
|
|
+ ret = -ENOMEM;
|
|
goto err_ep_mem;
|
|
goto err_ep_mem;
|
|
}
|
|
}
|
|
|
|
|