diff options
author | Prafulla Wadaskar <prafulla@marvell.com> | 2009-09-21 20:28:18 +0530 |
---|---|---|
committer | Ben Warren <biggerbadderben@gmail.com> | 2009-10-04 22:30:46 -0700 |
commit | 32e7f239dda8638377edb0d3e7ac269cabbafbe6 (patch) | |
tree | 831e6ec1bf2a27cced7126600d185acef2d16d81 /drivers/net | |
parent | c0b46d8ead3c6c5b569c83544fd71b9d73356869 (diff) | |
download | u-boot-imx-32e7f239dda8638377edb0d3e7ac269cabbafbe6.zip u-boot-imx-32e7f239dda8638377edb0d3e7ac269cabbafbe6.tar.gz u-boot-imx-32e7f239dda8638377edb0d3e7ac269cabbafbe6.tar.bz2 |
net: phy: mv88e61xx.c : fixed build warning
following build warning was observed
mv88e61xx.c: In function ‘mv88e61xx_busychk’:
mv88e61xx.c:208: warning: dereferencing type-punned pointer will break strict-aliasing rules
This patch fixes the same
Patch tested for rd6281a board build
Signed-off-by: Prafulla Wadaskar <prafulla@marvell.com>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/phy/mv88e61xx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/phy/mv88e61xx.c b/drivers/net/phy/mv88e61xx.c index 3754e8b..2d1de02 100644 --- a/drivers/net/phy/mv88e61xx.c +++ b/drivers/net/phy/mv88e61xx.c @@ -201,11 +201,11 @@ static void mv88e61xx_port_vlan_config(struct mv88e61xx_config *swconfig, */ static int mv88e61xx_busychk(char *name) { - u32 reg = 0; + u16 reg = 0; u32 timeout = MV88E61XX_PHY_TIMEOUT; do { RD_PHY(name, MV88E61XX_GLB2REG_DEVADR, - MV88E61XX_PHY_CMD, (u16 *) & reg); + MV88E61XX_PHY_CMD, ®); if (timeout-- == 0) { printf("SMI busy timeout\n"); return -1; |