Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 168947
b: refs/heads/master
c: 63edaf6
h: refs/heads/master
i:
  168945: b8118ca
  168943: 0ebe5e4
v: v3
  • Loading branch information
Alexander Beregalov authored and David S. Miller committed Nov 23, 2009
1 parent dabccf9 commit fe75f4b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5d09e534bbb94e1fdc8e4783ac822bc172465a91
refs/heads/master: 63edaf647607795a065e6956a79c47f500dc8447
15 changes: 8 additions & 7 deletions trunk/drivers/net/au1000_eth.c
Original file line number Diff line number Diff line change
Expand Up @@ -1088,7 +1088,14 @@ static struct net_device * au1000_probe(int port_num)
return NULL;
}

if ((err = register_netdev(dev)) != 0) {
dev->base_addr = base;
dev->irq = irq;
dev->netdev_ops = &au1000_netdev_ops;
SET_ETHTOOL_OPS(dev, &au1000_ethtool_ops);
dev->watchdog_timeo = ETH_TX_TIMEOUT;

err = register_netdev(dev);
if (err != 0) {
printk(KERN_ERR "%s: Cannot register net device, error %d\n",
DRV_NAME, err);
free_netdev(dev);
Expand Down Expand Up @@ -1209,12 +1216,6 @@ static struct net_device * au1000_probe(int port_num)
aup->tx_db_inuse[i] = pDB;
}

dev->base_addr = base;
dev->irq = irq;
dev->netdev_ops = &au1000_netdev_ops;
SET_ETHTOOL_OPS(dev, &au1000_ethtool_ops);
dev->watchdog_timeo = ETH_TX_TIMEOUT;

/*
* The boot code uses the ethernet controller, so reset it to start
* fresh. au1000_init() expects that the device is in reset state.
Expand Down

0 comments on commit fe75f4b

Please sign in to comment.