aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/tg3.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c
index 5fa65acb68e5..5b3d60568d55 100644
--- a/drivers/net/tg3.c
+++ b/drivers/net/tg3.c
@@ -860,7 +860,7 @@ static int tg3_bmcr_reset(struct tg3 *tp)
860 860
861static int tg3_mdio_read(struct mii_bus *bp, int mii_id, int reg) 861static int tg3_mdio_read(struct mii_bus *bp, int mii_id, int reg)
862{ 862{
863 struct tg3 *tp = (struct tg3 *)bp->priv; 863 struct tg3 *tp = bp->priv;
864 u32 val; 864 u32 val;
865 865
866 if (tp->tg3_flags3 & TG3_FLG3_MDIOBUS_PAUSED) 866 if (tp->tg3_flags3 & TG3_FLG3_MDIOBUS_PAUSED)
@@ -874,7 +874,7 @@ static int tg3_mdio_read(struct mii_bus *bp, int mii_id, int reg)
874 874
875static int tg3_mdio_write(struct mii_bus *bp, int mii_id, int reg, u16 val) 875static int tg3_mdio_write(struct mii_bus *bp, int mii_id, int reg, u16 val)
876{ 876{
877 struct tg3 *tp = (struct tg3 *)bp->priv; 877 struct tg3 *tp = bp->priv;
878 878
879 if (tp->tg3_flags3 & TG3_FLG3_MDIOBUS_PAUSED) 879 if (tp->tg3_flags3 & TG3_FLG3_MDIOBUS_PAUSED)
880 return -EAGAIN; 880 return -EAGAIN;