Commit 32e7f239 authored by Prafulla Wadaskar's avatar Prafulla Wadaskar Committed by Ben Warren
Browse files

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: default avatarPrafulla Wadaskar <>
Signed-off-by: default avatarBen Warren <>
parent c0b46d8e
......@@ -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 {
MV88E61XX_PHY_CMD, (u16 *) & reg);
MV88E61XX_PHY_CMD, &reg);
if (timeout-- == 0) {
printf("SMI busy timeout\n");
return -1;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment