]> git.sur5r.net Git - u-boot/blobdiff - common/usb.c
net/tftp.c: cosmetic: fix lines over 80 characters
[u-boot] / common / usb.c
index 44a435af6e67ed7de122a55e770c3d09f7ec95c5..4f7c520b344d7676d20a604be5c63d96b672efac 100644 (file)
@@ -145,10 +145,14 @@ int usb_stop(void)
 /*
  * disables the asynch behaviour of the control message. This is used for data
  * transfers that uses the exclusiv access to the control and bulk messages.
+ * Returns the old value so it can be restored later.
  */
-void usb_disable_asynch(int disable)
+int usb_disable_asynch(int disable)
 {
+       int old_value = asynch_allowed;
+
        asynch_allowed = !disable;
+       return old_value;
 }