Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 122783
b: refs/heads/master
c: 67c2fb8
h: refs/heads/master
i:
  122781: 59662a0
  122779: eee28f3
  122775: 627b0a0
  122767: 6c10917
  122751: 6daa3d5
v: v3
  • Loading branch information
Anton Vorontsov authored and David S. Miller committed Dec 19, 2008
1 parent f913b69 commit 41d207e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 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: 1762a29ae5ebdd974eb2ba0c36b56ab6f7a9c16d
refs/heads/master: 67c2fb8ff0eda3cee95954a1dd245c3ce1a10486
17 changes: 8 additions & 9 deletions trunk/drivers/net/ucc_geth.c
Original file line number Diff line number Diff line change
Expand Up @@ -2300,8 +2300,6 @@ static void ucc_geth_stop(struct ucc_geth_private *ugeth)
tempval &= ~(MACCFG1_ENABLE_RX | MACCFG1_ENABLE_TX);
out_be32(&ug_regs->maccfg1, tempval);

free_irq(ugeth->ug_info->uf_info.irq, ugeth->dev);

ucc_geth_memclean(ugeth);
}

Expand Down Expand Up @@ -3759,21 +3757,20 @@ static int ucc_geth_open(struct net_device *dev)

phy_start(ugeth->phydev);

err =
request_irq(ugeth->ug_info->uf_info.irq, ucc_geth_irq_handler, 0,
"UCC Geth", dev);
err = ugeth_enable(ugeth, COMM_DIR_RX_AND_TX);
if (err) {
if (netif_msg_ifup(ugeth))
ugeth_err("%s: Cannot get IRQ for net device, aborting.",
dev->name);
ugeth_err("%s: Cannot enable net device, aborting.", dev->name);
ucc_geth_stop(ugeth);
goto out_err;
}

err = ugeth_enable(ugeth, COMM_DIR_RX_AND_TX);
err = request_irq(ugeth->ug_info->uf_info.irq, ucc_geth_irq_handler,
0, "UCC Geth", dev);
if (err) {
if (netif_msg_ifup(ugeth))
ugeth_err("%s: Cannot enable net device, aborting.", dev->name);
ugeth_err("%s: Cannot get IRQ for net device, aborting.",
dev->name);
ucc_geth_stop(ugeth);
goto out_err;
}
Expand All @@ -3799,6 +3796,8 @@ static int ucc_geth_close(struct net_device *dev)

ucc_geth_stop(ugeth);

free_irq(ugeth->ug_info->uf_info.irq, ugeth->dev);

phy_disconnect(ugeth->phydev);
ugeth->phydev = NULL;

Expand Down

0 comments on commit 41d207e

Please sign in to comment.