summaryrefslogtreecommitdiffstats
path: root/src/drivers/net/sundance.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers/net/sundance.c')
-rw-r--r--src/drivers/net/sundance.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/drivers/net/sundance.c b/src/drivers/net/sundance.c
index fc591ec2..4f2adf2a 100644
--- a/src/drivers/net/sundance.c
+++ b/src/drivers/net/sundance.c
@@ -596,7 +596,7 @@ static int sundance_probe ( struct nic *nic, struct pci_device *pci ) {
/* BASE is used throughout to address the card */
BASE = pci->ioaddr;
printf(" sundance.c: Found %s Vendor=0x%hX Device=0x%hX\n",
- dev->name, pci->vendor, pci->dev_id);
+ pci->name, pci->vendor_id, pci->device_id);
/* Get the MAC Address by reading the EEPROM */
for (i = 0; i < 3; i++) {
@@ -618,13 +618,13 @@ static int sundance_probe ( struct nic *nic, struct pci_device *pci ) {
/* point to private storage */
sdc = &sdx;
- sdc->nic_name = dev->name;
+ sdc->nic_name = pci->name;
sdc->mtu = mtu;
pci_read_config_byte(pci, PCI_REVISION_ID, &sdc->pci_rev_id);
dprintf(("Device revision id: %hx\n", sdc->pci_rev_id));
/* Print out some hardware info */
- printf("%s: %! at ioaddr %hX, ", dev->name, nic->node_addr, BASE);
+ printf("%s: %! at ioaddr %hX, ", pci->name, nic->node_addr, BASE);
sdc->mii_preamble_required = 0;
if (1) {
int phy, phy_idx = 0;