]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
USB: chipidea: promote error code from ci_role_start() start instead of returning... usb-bugfix kc/usb-bugfix
authorLothar Waßmann <LW@KARO-electronics.de>
Thu, 22 Nov 2012 08:53:43 +0000 (09:53 +0100)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 22 Nov 2012 08:53:43 +0000 (09:53 +0100)
drivers/usb/chipidea/core.c

index b726c49f96196002a55bf76d7ff02eb3d32be2a0..bd6e7a42de46b6805a298dc503fceaae59e51c13 100644 (file)
@@ -478,8 +478,7 @@ 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;
+               dev_err(dev, "can't start %s role: %d\n", ci_role(ci)->name, ret);
                goto rm_wq;
        }