Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 32859
b: refs/heads/master
c: 93853fd
h: refs/heads/master
i:
  32857: 0a34896
  32855: 262d77e
v: v3
  • Loading branch information
Alexey Dobriyan authored and David S. Miller committed Jul 28, 2006
1 parent a762af1 commit 53d9a44
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: 96ba989d22de779ca19ca214e2b2e53a4ca86b7b
refs/heads/master: 93853fd0d492524e9172297d8e8b8364dc2c4c59
8 changes: 4 additions & 4 deletions trunk/drivers/net/sunlance.c
Original file line number Diff line number Diff line change
Expand Up @@ -1537,7 +1537,7 @@ static int __init sparc_lance_init(void)
{
if ((idprom->id_machtype == (SM_SUN4|SM_4_330)) ||
(idprom->id_machtype == (SM_SUN4|SM_4_470))) {
memset(&sun4_sdev, 0, sizeof(sdev));
memset(&sun4_sdev, 0, sizeof(struct sbus_dev));
sun4_sdev.reg_addrs[0].phys_addr = sun4_eth_physaddr;
sun4_sdev.irqs[0] = 6;
return sparc_lance_probe_one(&sun4_sdev, NULL, NULL);
Expand All @@ -1547,16 +1547,16 @@ static int __init sparc_lance_init(void)

static int __exit sunlance_sun4_remove(void)
{
struct lance_private *lp = dev_get_drvdata(&sun4_sdev->dev);
struct lance_private *lp = dev_get_drvdata(&sun4_sdev.ofdev.dev);
struct net_device *net_dev = lp->dev;

unregister_netdevice(net_dev);

lance_free_hwresources(root_lance_dev);
lance_free_hwresources(lp);

free_netdev(net_dev);

dev_set_drvdata(&sun4_sdev->dev, NULL);
dev_set_drvdata(&sun4_sdev.ofdev.dev, NULL);

return 0;
}
Expand Down

0 comments on commit 53d9a44

Please sign in to comment.