diff options
author | Prafulla Wadaskar <prafulla@marvell.com> | 2010-03-03 15:27:21 +0530 |
---|---|---|
committer | Ben Warren <biggerbadderben@gmail.com> | 2010-05-03 14:52:47 -0700 |
commit | e3f2a93362c823fc1feb5e8a40ff3c120716a05b (patch) | |
tree | e239a4bd7d0ffe9202392c5219645f0b8d918ca9 /drivers/net/kirkwood_egiga.c | |
parent | 4185ae7a7146a77a792e5ba49845e5ca6e95b038 (diff) | |
download | u-boot-imx-e3f2a93362c823fc1feb5e8a40ff3c120716a05b.zip u-boot-imx-e3f2a93362c823fc1feb5e8a40ff3c120716a05b.tar.gz u-boot-imx-e3f2a93362c823fc1feb5e8a40ff3c120716a05b.tar.bz2 |
net: Kirkwood_egiga.c: fixed build warnings
This patch fixes following build warnings for kirkwood_egiga.c
kirkwood_egiga.c: In function "kwgbe_init":
kirkwood_egiga.c:448: warning: dereferencing type-punned pointer will break strict-aliasing rules
kirkwood_egiga.c: In function "kwgbe_recv":
kirkwood_egiga.c:609: warning: dereferencing type-punned pointer will break strict-aliasing rules
Signed-off-by: Prafulla Wadaskar <prafulla@marvell.com>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
Diffstat (limited to 'drivers/net/kirkwood_egiga.c')
-rw-r--r-- | drivers/net/kirkwood_egiga.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/kirkwood_egiga.c b/drivers/net/kirkwood_egiga.c index 2ad7fea..25c72df 100644 --- a/drivers/net/kirkwood_egiga.c +++ b/drivers/net/kirkwood_egiga.c @@ -445,7 +445,7 @@ static int kwgbe_init(struct eth_device *dev) KWGBEREG_WR(regs->pmtu, 0); /* Assignment of Rx CRDB of given RXUQ */ - KWGBEREG_WR(regs->rxcdp[RXUQ].rxcdp, (u32) dkwgbe->p_rxdesc_curr); + KWGBEREG_WR(regs->rxcdp[RXUQ], (u32) dkwgbe->p_rxdesc_curr); /* Enable port Rx. */ KWGBEREG_WR(regs->rqc, (1 << RXUQ)); @@ -606,7 +606,7 @@ static int kwgbe_recv(struct eth_device *dev) p_rxdesc_curr->buf_size = PKTSIZE_ALIGN; p_rxdesc_curr->byte_cnt = 0; - writel((unsigned)p_rxdesc_curr->nxtdesc_p, &dkwgbe->p_rxdesc_curr); + writel((unsigned)p_rxdesc_curr->nxtdesc_p, (u32) &dkwgbe->p_rxdesc_curr); return 0; } |