Skip to contentSkip to conversation

USB: chipidea: promote error code from ci_role_start() start instead of returning -ENODEV

PATCH In review Lothar Waßmann 2 participants 2 messages Nov 23, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 USB: chipidea: promote error code from ci_role_start() start instead of returning -ENODEV

---
 drivers/usb/chipidea/core.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
drivers/usb/chipidea/core.c +0 -1
index b726c49..bd6e7a4 100644
@@ -479,7 +479,6 @@ static int __devinit ci_hdrc_probe(struct platform_device *pdev)
 	ret = ci_role_start(ci, ci->role);
 	if (ret) {
 		dev_err(dev, "can't start %s role\n", ci_role(ci)->name);
-		ret = -ENODEV;
 		goto rm_wq;
 	}
 
Signature · 1 line
1.7.2.5
#1 lore raw
Quoted 11 lines · Lothar Waßmann
---
 drivers/usb/chipidea/core.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
drivers/usb/chipidea/core.c +0 -0
index b726c49..bd6e7a4 100644

drivers/usb/chipidea/core.c static int __devinit ci_hdrc_probe(struct platform_device *pdev) · line 483

Quoted 6 lines
drivers/usb/chipidea/core.c +0 -1
@@ -479,7 +479,6 @@ static int __devinit ci_hdrc_probe(struct platform_device *pdev)
 	ret = ci_role_start(ci, ci->role);
 	if (ret) {
 		dev_err(dev, "can't start %s role\n", ci_role(ci)->name);
-		ret = -ENODEV;
 		goto rm_wq;
 	}

Any reasons?

Quoted 9 lines
Signature · 7 lines
-- 
1.7.2.5

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Signature · 2 lines
Best Regards,
Peter Chen