diff options
author | Felipe Balbi <balbi@ti.com> | 2015-02-26 19:55:13 +0300 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2015-03-10 23:33:25 +0300 |
commit | d0cddae7926f39e8fd488f62496cfebf7a5e757d (patch) | |
tree | 027ef11bbaf77ad6e702a2cfebb76701d1fe7667 /drivers/usb/musb | |
parent | 28378d5ed5ca1221479d2f94c3b346691834822f (diff) | |
download | linux-d0cddae7926f39e8fd488f62496cfebf7a5e757d.tar.xz |
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) session_restart = 1; } - return !session_restart; + return session_restart ? 0 : -EPIPE; } static struct musb_platform_ops dsps_ops = { |