summaryrefslogtreecommitdiffstats
path: root/drivers/net/eepro100.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/eepro100.c')
-rw-r--r--drivers/net/eepro100.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/net/eepro100.c b/drivers/net/eepro100.c
index 94546d995..56858bc45 100644
--- a/drivers/net/eepro100.c
+++ b/drivers/net/eepro100.c
@@ -842,9 +842,6 @@ speedo_open(struct device *dev)
wait_for_cmd_done(ioaddr + SCBCmd);
outw(CU_DUMPSTATS, ioaddr + SCBCmd);
- /* No need to wait for the command unit to accept here. */
- if ((sp->phy[0] & 0x8000) == 0)
- mdio_read(ioaddr, sp->phy[0] & 0x1f, 0);
/*
* Request the IRQ last, after we have set up all data structures.
@@ -855,6 +852,10 @@ speedo_open(struct device *dev)
return -EAGAIN;
}
+ /* No need to wait for the command unit to accept here. */
+ if ((sp->phy[0] & 0x8000) == 0)
+ mdio_read(ioaddr, sp->phy[0] & 0x1f, 0);
+
MOD_INC_USE_COUNT;
/* Set the timer. The timer serves a dual purpose: