Patchwork [U-Boot,2/2] MX28: Fix a typo in mx28_reg_8 macro

login
register
mail settings
Submitter Fabio Estevam
Date May 10, 2012, 1:27 p.m.
Message ID <1336656444-2573-2-git-send-email-fabio.estevam@freescale.com>
Download mbox | patch
Permalink /patch/158292/
State Accepted
Commit 8b8d81047df5ac005adf4f5ed7db637d6bfb196c
Headers show

Comments

Fabio Estevam - May 10, 2012, 1:27 p.m.
From: Otavio Salvador <otavio@ossystems.com.br>

The macro mistakenly referred to 32bit struct instead of 8bit one.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Cc: Fabio Estevam <fabio.estevam@freescale.com>
Cc: Marek Vasut <marex@denx.de>
---
 arch/arm/include/asm/arch-mx28/regs-common.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/arch/arm/include/asm/arch-mx28/regs-common.h b/arch/arm/include/asm/arch-mx28/regs-common.h
index 94b512d..d2e1953 100644
--- a/arch/arm/include/asm/arch-mx28/regs-common.h
+++ b/arch/arm/include/asm/arch-mx28/regs-common.h
@@ -70,7 +70,7 @@  struct mx28_register_32 {
 #define	mx28_reg_8(name)				\
 	union {						\
 		struct { __mx28_reg_8(name) };		\
-		struct mx28_register_32 name##_reg;	\
+		struct mx28_register_8 name##_reg;	\
 	};
 
 #define	mx28_reg_32(name)				\