usb: chipidea: don't clobber return value of ci_role_start()
authorLothar Waßmann <LW@KARO-electronics.de>
Wed, 14 Aug 2013 09:44:00 +0000 (12:44 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Aug 2013 19:34:16 +0000 (12:34 -0700)
commit3b1280ca4b1743de3be04e9dd5907ec79d72483d
tree297af2d6096caee4983f8ed09c1e71c54b15d624
parent769d92c411c3479835d2428edfd167c41d80c5f0
usb: chipidea: don't clobber return value of ci_role_start()

If a role fails to start, propagate the error code up the call stack
from probe.

Signed-off-by: Lothar Waßmann <LW@KARO-electronics.de>
Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/chipidea/core.c