Commit d0cddae7 authored by Felipe Balbi's avatar Felipe Balbi
Browse files

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: default avatarBin Liu <b-liu@ti.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 28378d5e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 = {