diff options
author | Felipe Balbi <balbi@ti.com> | 2015-02-26 11:55:13 -0500 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2015-03-10 16:33:25 -0400 |
commit | d0cddae7926f39e8fd488f62496cfebf7a5e757d (patch) | |
tree | 027ef11bbaf77ad6e702a2cfebb76701d1fe7667 /drivers/usb/musb | |
parent | 28378d5ed5ca1221479d2f94c3b346691834822f (diff) |
usb: musb: dsps: return error code if reset fails
if reset fails, we should return a *negative*
error code, not a positive value.
Tested-by: Bin Liu <b-liu@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/musb')
-rw-r--r-- | drivers/usb/musb/musb_dsps.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/musb/musb_dsps.c b/drivers/usb/musb/musb_dsps.c index a900c9877195..af614f49cd98 100644 --- a/drivers/usb/musb/musb_dsps.c +++ b/drivers/usb/musb/musb_dsps.c | |||
@@ -652,7 +652,7 @@ static int dsps_musb_reset(struct musb *musb) | |||
652 | session_restart = 1; | 652 | session_restart = 1; |
653 | } | 653 | } |
654 | 654 | ||
655 | return !session_restart; | 655 | return session_restart ? 0 : -EPIPE; |
656 | } | 656 | } |
657 | 657 | ||
658 | static struct musb_platform_ops dsps_ops = { | 658 | static struct musb_platform_ops dsps_ops = { |