From 5308df03ed797dc09260efca00a4626a34c10c3e Mon Sep 17 00:00:00 2001 From: Wojciech Zajac Date: Wed, 28 May 2014 12:48:27 +0200 Subject: [PATCH] Volatile keyword fix for MUSB reset loop. --- drivers/usbd/include/usb/hcd_common.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/usbd/include/usb/hcd_common.h b/drivers/usbd/include/usb/hcd_common.h index 44336fc00..6df67ae52 100755 --- a/drivers/usbd/include/usb/hcd_common.h +++ b/drivers/usbd/include/usb/hcd_common.h @@ -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))