summaryrefslogtreecommitdiff
path: root/drivers/net/bfin_mac.h
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-01-08 11:57:57 -0500
committerMike Frysinger <vapier@gentoo.org>2009-02-02 12:24:27 -0500
commit6d7d4803c74bb86e1b401b1199e63381a62b9382 (patch)
treeaaac88710c088a7ae5a52236287033893253aa5c /drivers/net/bfin_mac.h
parent092d2487baf7c29343c165e3ae82ea8a7f9e679b (diff)
downloadu-boot-imx-6d7d4803c74bb86e1b401b1199e63381a62b9382.zip
u-boot-imx-6d7d4803c74bb86e1b401b1199e63381a62b9382.tar.gz
u-boot-imx-6d7d4803c74bb86e1b401b1199e63381a62b9382.tar.bz2
Blackfin: bfin_mac: cleanup pointer/casts for aliasing issues
Redo how pointers are managed to get rid of ugly casts and strict pointer aliasing issues that are highlighted by gcc 4.3. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Acked-by: Ben Warren <biggerbadderben@gmail.com>
Diffstat (limited to 'drivers/net/bfin_mac.h')
-rw-r--r--drivers/net/bfin_mac.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/bfin_mac.h b/drivers/net/bfin_mac.h
index b1623e0..084f533 100644
--- a/drivers/net/bfin_mac.h
+++ b/drivers/net/bfin_mac.h
@@ -35,7 +35,10 @@ typedef struct adi_ether_frame_buffer {
typedef struct dma_descriptor {
struct dma_descriptor *NEXT_DESC_PTR;
u32 START_ADDR;
- ADI_DMA_CONFIG_REG CONFIG;
+ union {
+ u16 CONFIG_DATA;
+ ADI_DMA_CONFIG_REG CONFIG;
+ };
} DMA_DESCRIPTOR;
/* 10 bytes/struct in 12 bytes */