summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDirk Behme <dirk.behme@googlemail.com>2009-09-28 08:17:50 -0400
committerTom Rix <Tom.Rix@windriver.com>2009-10-04 10:51:30 -0500
commitb3ff5667c7f9d01f1e4eb9bcb6a6c02e148bfcfe (patch)
tree59058aabb10e1329a7ca5896497439a068e23018 /include
parent4d6c2dd7ed6c6bc4114ca5c7577560ea9ba50bd0 (diff)
downloadu-boot-imx-b3ff5667c7f9d01f1e4eb9bcb6a6c02e148bfcfe.zip
u-boot-imx-b3ff5667c7f9d01f1e4eb9bcb6a6c02e148bfcfe.tar.gz
u-boot-imx-b3ff5667c7f9d01f1e4eb9bcb6a6c02e148bfcfe.tar.bz2
OMAP3 MMC: Fix warning dereferencing type-punned pointer
Fix warning Dereferencing type-punned pointer will break strict-aliasing rules Signed-off-by: Dirk Behme <dirk.behme@googlemail.com> CC: Steve Sakoman <sakoman@gmail.com> Acked-by: Tom Rix <Tom.Rix@windriver.com>
Diffstat (limited to 'include')
-rw-r--r--include/asm-arm/arch-omap3/mmc.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/asm-arm/arch-omap3/mmc.h b/include/asm-arm/arch-omap3/mmc.h
index 55584d9..196ffdc 100644
--- a/include/asm-arm/arch-omap3/mmc.h
+++ b/include/asm-arm/arch-omap3/mmc.h
@@ -223,6 +223,13 @@ typedef struct {
unsigned short newpublishedrca;
} mmc_resp_r6;
+typedef union {
+ unsigned int resp[4];
+ mmc_resp_r3 r3;
+ mmc_resp_r6 r6;
+ mmc_csd_reg_t Card_CSD;
+} mmc_resp_t;
+
extern mmc_card_data mmc_dev;
unsigned char mmc_lowlevel_init(void);