Prechádzať zdrojové kódy

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>
Felipe Balbi 10 rokov pred
rodič
commit
d0cddae792
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      drivers/usb/musb/musb_dsps.c

+ 1 - 1
drivers/usb/musb/musb_dsps.c

@@ -652,7 +652,7 @@ static int dsps_musb_reset(struct musb *musb)
 		session_restart = 1;
 		session_restart = 1;
 	}
 	}
 
 
-	return !session_restart;
+	return session_restart ? 0 : -EPIPE;
 }
 }
 
 
 static struct musb_platform_ops dsps_ops = {
 static struct musb_platform_ops dsps_ops = {