Commit 344e0f62 authored by Ben Hutchings's avatar Ben Hutchings Committed by David S. Miller

3c59x: Fix call to mdio_sync() with the wrong argument

commit a095cfc4
"3c59x: Specify window explicitly for access to windowed registers"
changed the first parameter to mdio_sync(), from a pointer to the
register mapping, to a pointer to the vortex_private structure,
and changed all but one of the call sites.  Fix that last one.
Reported-by: default avatarLuca Falavigna <dktrkranz@debian.org>
Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 9c179780
...@@ -1393,7 +1393,7 @@ static int __devinit vortex_probe1(struct device *gendev, ...@@ -1393,7 +1393,7 @@ static int __devinit vortex_probe1(struct device *gendev,
mii_preamble_required++; mii_preamble_required++;
if (vp->drv_flags & EXTRA_PREAMBLE) if (vp->drv_flags & EXTRA_PREAMBLE)
mii_preamble_required++; mii_preamble_required++;
mdio_sync(ioaddr, 32); mdio_sync(vp, 32);
mdio_read(dev, 24, MII_BMSR); mdio_read(dev, 24, MII_BMSR);
for (phy = 0; phy < 32 && phy_idx < 1; phy++) { for (phy = 0; phy < 32 && phy_idx < 1; phy++) {
int mii_status, phyx; int mii_status, phyx;
......
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