]> Zhao Yanbai Git Server - minix.git/commitdiff
Volatile keyword fix for MUSB reset loop.
authorWojciech Zajac <wzajac@jpembedded.eu>
Wed, 28 May 2014 10:48:27 +0000 (12:48 +0200)
committerLionel Sambuc <lionel@minix3.org>
Mon, 28 Jul 2014 15:05:40 +0000 (17:05 +0200)
drivers/usbd/include/usb/hcd_common.h

index 44336fc0049af724f55d30756db03be06e626ff6..6df67ae529b03472d33952b1fa2c02301f1a391f 100755 (executable)
@@ -29,9 +29,9 @@ typedef unsigned short                                hcd_reg2;
 typedef unsigned char                          hcd_reg1;
 
 /* For register dereferencing */
-#define _HCD_REG4                              hcd_reg4 * volatile
-#define _HCD_REG2                              hcd_reg2 * volatile
-#define _HCD_REG1                              hcd_reg1 * volatile
+#define _HCD_REG4                              volatile hcd_reg4 *
+#define _HCD_REG2                              volatile hcd_reg2 *
+#define _HCD_REG1                              volatile hcd_reg1 *
 
 /* Scalar address to dereference */
 #define _HCD_ADDR(base, off)                   (((hcd_addr)(base))+(off))