summaryrefslogtreecommitdiff
path: root/include/asm-arm
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-13 06:17:36 -0500
commit9de0212bd7c4c82a7e8c2a2c8714f8c7abc57d08 (patch)
tree0c0ea1fa1ba5e756b7d5eea0e22b0c4fc913ee2d /include/asm-arm
parente92daeb5c2050438402b87c7d614e8a13c294348 (diff)
downloadu-boot-imx-9de0212bd7c4c82a7e8c2a2c8714f8c7abc57d08.zip
u-boot-imx-9de0212bd7c4c82a7e8c2a2c8714f8c7abc57d08.tar.gz
u-boot-imx-9de0212bd7c4c82a7e8c2a2c8714f8c7abc57d08.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/asm-arm')
-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);