summaryrefslogtreecommitdiff
path: root/drivers/eepro100.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/eepro100.c')
-rw-r--r--drivers/eepro100.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/eepro100.c b/drivers/eepro100.c
index c8d07de..a0bb76d 100644
--- a/drivers/eepro100.c
+++ b/drivers/eepro100.c
@@ -331,8 +331,8 @@ int eepro100_initialize (bd_t * bis)
dev = (struct eth_device *) malloc (sizeof *dev);
sprintf (dev->name, "i82559#%d", card_number);
+ dev->priv = (void *) devno; /* this have to come before bus_to_phys() */
dev->iobase = bus_to_phys (iobase);
- dev->priv = (void *) devno;
dev->init = eepro100_init;
dev->halt = eepro100_halt;
dev->send = eepro100_send;